Skip to content
Snippets Groups Projects
Commit 510d9da6 authored by chad.hanna's avatar chad.hanna
Browse files

gstlal_ll_inspiral_state: FIXME this implements a hack to take into account...

gstlal_ll_inspiral_state: FIXME this implements a hack to take into account that ALIGO uses a 16Hz dq vector and virgo uses a 1 Hz dq vector. gstlal inspiral should just report the output of added and dropped data in seconds rather than samples and this would go away
parent d1873160
No related branches found
No related tags found
No related merge requests found
......@@ -121,6 +121,9 @@ if __name__ == '__main__':
logging.info("getting data from kafka")
timedata, datadata = aggregator.get_data_from_kafka(jobs, routes, consumer, req_all = True)
for (job,route) in timedata:
if "L1" in route or "H1" in route:
# FIXME hack to adjust for 16 Hz sample rate of ALIGO vs 1 Hz of Virgo
datadata[(job,route)] /= 16
path = "%s/by_job/%s" % (options.base_dir, job)
fname = aggregator.create_new_dataset(path, route.replace("/","_"), timedata = timedata[(job,route)], data = datadata[(job,route)], tmp = True)
shutil.move(fname, fname.replace(".tmp", ""))
......
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