diff --git a/gstlal/python/simulation.py b/gstlal/python/simulation.py index 86a74def0d43948c698bd0f438c333d9fd0e20c7..d122dda190993892c946c0c174842072c0d888d6 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