Skip to content

Return when there are no input files#479

Merged
jmcarcell merged 1 commit intomainfrom
no-input-files
May 7, 2026
Merged

Return when there are no input files#479
jmcarcell merged 1 commit intomainfrom
no-input-files

Conversation

@jmcarcell
Copy link
Copy Markdown
Member

@jmcarcell jmcarcell commented Apr 30, 2026

BEGINRELEASENOTES

  • Return when there are no input files to allow using -h

ENDRELEASENOTES

Fix #474

Do you want to try it out @Victor-Schwan?

For me:

k4run ILDReconstruction.py -h
[k4run - INFO] io_helpers.finalize_converters: Added an input converter (EDM4hep to LCIO) to the MyAIDAProcessor algorithm
[k4run - INFO] io_helpers.finalize_converters: Added an output converter (LCIO to EDM4hep) to the CollPatcherREC algorithm
usage: k4run [--dry-run] [-n NUM_EVENTS] [-l] [--gdb] [--interactive-root] [--log-level {VERBOSE,DEBUG,INFO,WARNING,ERROR}] [-i] [--compactFile COMPACTFILE |
             --detectorModel {ILD_l5_o1_v02,ILD_l2_v02,ILD_l4_o1_v02,ILD_l4_o2_v02,ILD_l5_o1_v03,ILD_l5_o1_v04,ILD_l5_o1_v05,ILD_l5_o1_v06,ILD_l5_o2_v02,ILD_l5_o3_v02,ILD_l5_o4_v02,ILD_s2_v02,ILD_s4_o1_v02,ILD_s4_o2_v02,ILD_s5_o1_v02,ILD_s5_o1_v03,ILD_s5_o1_v04,ILD_s5_o1_v05,ILD_s5_o1_v06,ILD_s5_o2_v02,ILD_s5_o3_v02,ILD_s5_o4_v02,ILD_l5_o1_v09,ILD_l5_v11,ILD_FCCee_v01,ILD_FCCee_v02}]
             [--runBeamCalReco | --noBeamCalReco] [--inputFiles ['file1', 'file2'] [['file1', 'file2'] ...]] [--outputFileBase OUTPUTFILEBASE] [--lcioOutput {off,on,only}]
             [--cmsEnergy {91,160,240,250,350,365,500,1000}] [--perfectPFA] [--runOverlay] [--beamCalCalibFactor BEAMCALCALIBFACTOR] [--trackingOnly]
             [--MySiliconTracking_MarlinTrk.OutputLevel
...

It prints the options twice, once in this short version and another one with also a description when available.

@jmcarcell
Copy link
Copy Markdown
Member Author

Merging so that it can be tested in the nightlies. It worked for me locally.

@jmcarcell jmcarcell merged commit c8cf21e into main May 7, 2026
4 of 7 checks passed
@jmcarcell jmcarcell deleted the no-input-files branch May 7, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

k4run insists on input file

1 participant