Skip to content

Commit

Permalink
gwsumm.plot: fixed issue with quantity comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmmacleod committed Mar 19, 2019
1 parent f8f9949 commit 16165d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gwsumm/plot/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _get_data_segments(self, channel):
"""
if self.state and not self.all_data:
return self.state.active
if channel.sample_rate:
if channel.sample_rate is not None:
return SegmentList([self.span.protract(
1/channel.sample_rate.value)])
return SegmentList([self.span])
Expand Down

0 comments on commit 16165d6

Please sign in to comment.