parser.add_argument("--dump-period",type=float,default=180.,help="Wait this many seconds between dumps of the URLs (default = 180., set to 0 to disable)")
parser.add_argument("--num-jobs",action="store",type=int,default=10,help="number of running jobs")
parser.add_argument("--job-tag",help="Collect URLs for jobs reporting this job tag (default = collect all gstlal_inspiral URLs).")
args=parser.parse_args()
...
...
@@ -77,14 +74,24 @@ def parse_command_line():
defmedian(l):
"""!
Return the median of a list on nearest value
"""
returnsorted(l)[len(l)//2]
defnow():
"""!
A convenience function to return the current gps time
"""
returnLIGOTimeGPS(lal.UTCToGPS(time.gmtime()),0)
defget_url(url,d):
"""!
A function to pull data from @param url where @param d specifies a
specific route. FIXME it assumes that the routes end in .txt
loggging.info("processing reduced data %s for job %s in span [%d,%d] of type %s at level %d: found %d/%d"%(d,job,s,e,typ,level,len(reduced_time),len(agg_time)))