Skip to content

Commit

Permalink
Fix allrange list reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
dethodav committed Oct 24, 2023
1 parent 44d1c66 commit c7229d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gwsumm/plot/range.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def livetime_(t):

def combined_time_volume(self, allsegments, allranges):
empty = [i for i, r in enumerate(allranges) if not len(r.value)]
for i in empty[-1:]:
for i in empty[::-1]:
allsegments.pop(i)
allranges.pop(i)
min_x0 = min([r.x0.value for r in allranges])
Expand Down

0 comments on commit c7229d8

Please sign in to comment.