@@ -41,6 +44,7 @@ from ligo.lw.utils import process as ligolw_process
fromgstlalimportfar
fromgstlalimportsvd_bank
fromgstlalimporttemplates
@ligolw_array.use_in
@ligolw_param.use_in
...
...
@@ -75,9 +79,10 @@ def parse_command_line():
parser.add_option("--write-likelihood",metavar="filename",help="Write merged raw likelihood data to this file.")
parser.add_option("--instrument",action="append",help="Append to a list of instruments to create dist stats for. List must be whatever instruments you intend to analyze.")
parser.add_option("-p","--background-prior",metavar="N",default=1,type="float",help="Include an exponential background prior with the maximum bin count = N, default 1")
parser.add_option("--df",metavar="N",default=40,type="int",help="set the degrees of freedom for the background chisq prior: default 40")
parser.add_option("--df",metavar="N",default=40,help="set the degrees of freedom for the background chisq prior: default 40. You can also use template bandwidth to set this by setting it to 'bandwidth'")
parser.add_option("--svd-file",metavar="filename",help="The SVD file to read the template ids from")
parser.add_option("--mass-model-file",metavar="filename",help="The mass model file to read from (hdf5 format)")
parser.add_option("--psd-xml",type="string",help="Specify a PSD to use for computing template bandwidth. Required if df is bandwidth")
options,filenames=parser.parse_args()
process_params=dict(options.__dict__)
...
...
@@ -94,12 +99,30 @@ def parse_command_line():
iffilenames:
raiseValueError("unrecognized arguments after options: %s"%"".join(filenames))