Skip to content

Commit

Permalink
Create directory only when chunk_list has more chunks than 1 (HEP-FCC…
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvbrt authored Oct 1, 2024
1 parent 883c0cd commit a303165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/FCCee/higgs/mH-recoil/mumu/analysis_stage2.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, _):
# Run over the full statistics from stage1 input file
# <inputDir>/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
Expand Down
2 changes: 1 addition & 1 deletion python/run_fccanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a303165

Please sign in to comment.