-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add 'fccanalysis run' command using subparsers (#180)
* add 'fccanalysis run' command using subparsers * make sure tests find fccanalysis * Update bin/fccanalysis Co-authored-by: Clement Helsens <clement.helsens@cern.ch> * update runLocal * try to make ctest find fccanalysis * update readme * try to make ctest find fccanalysis Co-authored-by: Clement Helsens <clement.helsens@cern.ch>
- Loading branch information
1 parent
82a87ff
commit ff8ff03
Showing
6 changed files
with
84 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env python3 | ||
|
||
|
||
if __name__ == "__main__": | ||
import argparse | ||
import sys | ||
parser = argparse.ArgumentParser() | ||
subparsers = parser.add_subparsers() | ||
parser_run = subparsers.add_parser('run', help="run a RDataFrame based FCC analysis") | ||
if len(sys.argv)<2: | ||
print("for usage run fccanalyses --help") | ||
sys.exit(3) | ||
from config.FCCAnalysisRun import * #such that the dictionary is loaded only if the configuration is ok | ||
run(parser, parser_run) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters