Skip to content
Snippets Groups Projects
Commit 2c3f511c authored by Kipp Cannon's avatar Kipp Cannon
Browse files

gstlal_inspiral_create_prior_diststats:

- fix bug in command-line error checking
- don't convert --instrument values to a set until after checking that at least one has been provided
parent 9d0a5843
No related branches found
No related tags found
No related merge requests found
......@@ -80,9 +80,9 @@ def parse_command_line():
process_params = dict(options.__dict__)
options.instrument = set(options.instrument)
if not options.instrument:
raise ValueError("must specify at least one --instrument")
options.instrument = set(options.instrument)
if options.min_instruments < 1:
raise ValueError("--min-instruments must be >= 1")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment