From 6a7be0edd6796475f0ebea4e5d5e4e5efa0a8609 Mon Sep 17 00:00:00 2001 From: Kipp Cannon <kipp.cannon@ligo.org> Date: Sun, 17 Feb 2019 02:36:10 -0800 Subject: [PATCH] simulation.sim_inspiral_to_segment_list(): - don't use obsolete .get_*() methods --- gstlal/python/simulation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gstlal/python/simulation.py b/gstlal/python/simulation.py index 86a74def0d..d122dda190 100644 --- a/gstlal/python/simulation.py +++ b/gstlal/python/simulation.py @@ -71,8 +71,8 @@ def sim_inspiral_to_segment_list(fname, pad=1, verbose=False): # extract the padded geocentric end times into segment lists for row in lsctables.SimInspiralTable.get_table(xmldoc): - t = LIGOTimeGPS(row.get_time_geocent()) - seglist.append(segments.segment(LIGOTimeGPS(int(math.floor(t-pad))), LIGOTimeGPS(int(math.ceil(t+pad))))) + t = row.time_geocent + seglist.append(segments.segment(LIGOTimeGPS(math.floor(t-pad)), LIGOTimeGPS(math.ceil(t+pad)))) # help the garbage collector -- GitLab