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

dags/util.py: do not zero pad segments outside of requested times within partition_by_time()

parent 9cd933a8
No related branches found
No related tags found
No related merge requests found
...@@ -411,7 +411,7 @@ def partition_by_time(span, segdict, ifos, min_ifos=1, max_livetime=14440, start ...@@ -411,7 +411,7 @@ def partition_by_time(span, segdict, ifos, min_ifos=1, max_livetime=14440, start
# calculate start/end times from each bin and pad accordingly # calculate start/end times from each bin and pad accordingly
half_pad = start_pad / 2 half_pad = start_pad / 2
return [segs.extent().protract(half_pad).shift(-half_pad) for segs in time_bins] return [segs.extent().protract(half_pad).shift(-half_pad) if i != 0 else segs.extent() for i, segs in enumerate(time_bins)]
# #
......
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