print>>sys.stdout,"\t%s were on for %d seconds (after vetoes, excluding playground)"%(','.join(sorted(list(inst))),abs(self.zero_lag_segments[inst]))
print>>sys.stdout,"\t%s were on for %d seconds (after vetoes)"%(','.join(sorted(list(inst))),abs(self.zero_lag_segments[inst]))
# remove instrument sets that were never on
ifabs(self.zero_lag_segments[inst])==0:
print>>sys.stderr,"No livetime for in %s observation time. Skipping..."%("".join(sorted(list(inst))))
self.instruments.remove(inst)
self.instrument_combos.remove(inst)
returnself.zero_lag_segments
...
...
@@ -260,7 +247,7 @@ class upper_limit(object):
Remove injections from those found in the database based on
user-imposed restrictions.
'''
forinstinself.instruments:
forinstinself.instrument_combos:
newinjs=[]
forsim_paramsinsims:
...
...
@@ -319,7 +306,6 @@ The program gstlal_inspiral_plot_sensitivity computes the sensitive volume of a
parser.add_option("--max-snr",default=15,type="float",help="Specify the maximum SNR for volume calculation.")
# Input data options
parser.add_option("--include-play",default=True,action="store_true",help="Include playground data in computing the livetime and volume.")
parser.add_option("--zero-lag-database",default=[],action="append",help="Name of database containing the zero lag segments and triggers.")
parser.add_option("--injection-database",default=[],action="append",help="Name of database containing injection parameters and triggers.")
parser.add_option("--live-time-program",default="gstlal_inspiral",metavar="name",help="Set the name of the program whose rings will be extracted from the search_summary table. Default = \"gstlal_inspiral\".")