From a303165ad0ebd86d29a4991dc67085e86239ce63 Mon Sep 17 00:00:00 2001 From: Juraj Smiesko <34742917+kjvbrt@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:54:11 +0200 Subject: [PATCH] Create directory only when chunk_list has more chunks than 1 (#409) --- examples/FCCee/higgs/mH-recoil/mumu/analysis_stage2.py | 2 +- python/run_fccanalysis.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/FCCee/higgs/mH-recoil/mumu/analysis_stage2.py b/examples/FCCee/higgs/mH-recoil/mumu/analysis_stage2.py index fffb652ab8..924b9a8532 100644 --- a/examples/FCCee/higgs/mH-recoil/mumu/analysis_stage2.py +++ b/examples/FCCee/higgs/mH-recoil/mumu/analysis_stage2.py @@ -35,7 +35,7 @@ def __init__(self, _): # Run over the full statistics from stage1 input file # /p8_ee_ZH_ecm240_out.root. Change the output name to # MySample_p8_ee_ZH_ecm240 - 'p8_ee_ZH_ecm240_out': {'output': 'MySample_p8_ee_ZH_ecm240'} + 'p8_ee_ZH_ecm240_out_f02': {'output': 'MySample_p8_ee_ZH_ecm240'} } # Mandatory: input directory when not running over centrally produced diff --git a/python/run_fccanalysis.py b/python/run_fccanalysis.py index 5946f12d1c..5d222f125b 100644 --- a/python/run_fccanalysis.py +++ b/python/run_fccanalysis.py @@ -713,7 +713,7 @@ def run_fccanalysis(args, analysis_module): LOGGER.info('Number of the output files: %s', f'{len(chunk_list):,}') # Create directory if more than 1 chunk - if chunks > 1: + if len(chunk_list) > 1: output_directory = os.path.join(output_dir if output_dir else '', output_stem)