Skip to content
Snippets Groups Projects
Commit 6a7be0ed authored by Kipp Cannon's avatar Kipp Cannon
Browse files

simulation.sim_inspiral_to_segment_list():

- don't use obsolete .get_*() methods
parent 1c71d30e
No related branches found
No related tags found
No related merge requests found
Pipeline #49168 failed
......@@ -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
......
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