Skip to content

Commit a303165

Browse files
authored
Create directory only when chunk_list has more chunks than 1 (#409)
1 parent 883c0cd commit a303165

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/FCCee/higgs/mH-recoil/mumu/analysis_stage2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self, _):
3535
# Run over the full statistics from stage1 input file
3636
# <inputDir>/p8_ee_ZH_ecm240_out.root. Change the output name to
3737
# MySample_p8_ee_ZH_ecm240
38-
'p8_ee_ZH_ecm240_out': {'output': 'MySample_p8_ee_ZH_ecm240'}
38+
'p8_ee_ZH_ecm240_out_f02': {'output': 'MySample_p8_ee_ZH_ecm240'}
3939
}
4040

4141
# Mandatory: input directory when not running over centrally produced

python/run_fccanalysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ def run_fccanalysis(args, analysis_module):
713713
LOGGER.info('Number of the output files: %s', f'{len(chunk_list):,}')
714714

715715
# Create directory if more than 1 chunk
716-
if chunks > 1:
716+
if len(chunk_list) > 1:
717717
output_directory = os.path.join(output_dir if output_dir else '',
718718
output_stem)
719719

0 commit comments

Comments
 (0)