Skip to content
Snippets Groups Projects
Commit fce93b2a authored by Patrick Godwin's avatar Patrick Godwin
Browse files

gstlal_etg: fixed bug with setting duration in file writes for hdf5

parent 86e39885
No related branches found
No related tags found
No related merge requests found
......@@ -292,7 +292,8 @@ class MultiChannelHandler(simplehandler.Handler):
if idq_aggregator.in_new_epoch(buftime, self.last_save_time[(channel, rate)], self.cadence) or (options.trigger_end_time and buftime == int(options.trigger_end_time)):
if options.gps_end_time:
# Uses the T050017 filenaming convention.
fname = '%s-%s-%s' % (self.tag, options.gps_start_time, options.gps_end_time - options.gps_start_time)
duration = int(options.gps_end_time) - int(options.gps_start_time)
fname = '%s-%s-%d' % (self.tag, options.gps_start_time, duration)
else:
fname = '%s-%d' % (self.tag, self.init_gps_time)
fpath = os.path.join(self.out_path, self.tag, self.tag+"-"+str(fname.split("-")[2])[:5])
......
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