Commit c20e7042 authored by Aaron Zimmerman's avatar Aaron Zimmerman
Browse files

Enforce a required arument for pptest in lalinference_review_test.py

parent ac1b02a6
......@@ -40,7 +40,7 @@ parser.add_argument('--analytic-csv-dir', type=str,
parser.add_argument('--pptest', action='store_true',
default=False,
help='Runs a P-P analysis.')
help='Runs a P-P analysis. Must specify a single engine.')
parser.add_argument('--bbh-injection', type=str, nargs='?',
default=False,
......@@ -316,6 +316,9 @@ def set_pptest(cp):
if args.pptest:
# The PP test needs an engine to be specified
assert ',' not in args.engine, "A single engine must be specified"
os.makedirs(args.output+'/pptest/')
os.chdir(args.output+'/pptest/')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment