@@ -67,6 +67,7 @@ from optparse import OptionParser, OptionGroup, IndentedHelpFormatter
importos
fromgstlalimportdatasource
fromgstlalimportinspiral
fromgstlalimportpipeparts
fromgstlalimportreference_psd
fromgstlalimportsvd_bank
...
...
@@ -119,7 +120,7 @@ def parse_command_line():
parser.add_option_group(group)
group=OptionGroup(parser,"Template Options","Choose a template from a SVD bank file / a single SnglInspiral Table")
group.add_option("--svd-bank",metavar="filename",help="A LIGO light-weight xml / xml.gz file containing svd bank information (require).")
group.add_option("--svd-bank",metavar="filename",help="A LIGO light-weight xml / xml.gz file containing svd bank information. These can be given as a comma separated list such as H1:file1,H2:file2,L1:file3 to analyze multiple instruments (require).")
group.add_option("--sub-bank-id",type="int",help="Bank id is of the form <int>ID_<int>N where N is the sub bank id. (require).")
group.add_option("--row-number",type="int",help="The row number of the template (optional). All the SNRs will be outputed if it is not given.")
group.add_option("--table",metavar="filename",help="A LIGO light-weight xml.gz file containing SnglInspiral Table. Expecting one template for each instrument only.")
...
...
@@ -138,19 +139,20 @@ def parse_command_line():
group=OptionGroup(parser,"GraceDb Event Options","Produce SNR time series for gstlal gracedb event.")
group.add_option("--mode",metavar="method",type="int",default=0,help="The method (0 = LLOID / 1 = FIR) that is used to calculate SNR (default = 0).")
group.add_option("--complex",action="store_true",help="Choose whether to output the complex snr or not.")
group.add_option("--start",metavar="seconds",type="float",help="Start SNR time series at GPS time '--start' (require).")
group.add_option("--end",metavar="seconds",type="float",help="End SNR time series at GPS time '--end' (require).")
group.add_option("--output-width",metavar="bits",type="int",default=32,help="The size of the output data, can only be 32 or 64 bits (default = 32 bits).")
group.add_option("--instrument",metavar="name",help="The detector from which the --reference-psd and --frame-cache are loaded (require).")
group.add_option("--instrument",metavar="name",type="str",action="append",help="The detector from which the --reference-psd and --frame-cache are loaded (require).")
raiseValueError("No such template: Invaild --row-number %d. Possible range [0-%d)\n"%(options.row_number,len(bank[options.sub_bank_id].sngl_inspiral_table)))
returnoptions,gw_data_source_info,banks,psd
# Use Finite Impulse Response
elifoptions.mode==1:
...
...
@@ -253,10 +266,6 @@ def parse_command_line():
missing_required_options.append("--table")
ifoptions.approximantisNone:
missing_required_options.append("--approximant")
ifoptions.outdirisNone:
missing_required_options.append("--outdir")
ifoptions.instrumentisNone:
missing_required_options.append("--instrument")
ifoptions.template_psdisNone:
missing_required_options.append("--template-psd")
# Raise VauleError is required option(s) is/are missing