From 16165d61d5198705d7abe0604c1f77f0845c4ade Mon Sep 17 00:00:00 2001 From: Duncan Macleod Date: Tue, 19 Mar 2019 14:22:32 -0500 Subject: [PATCH] gwsumm.plot: fixed issue with quantity comparisons --- gwsumm/plot/builtin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gwsumm/plot/builtin.py b/gwsumm/plot/builtin.py index 697f0204..35131514 100644 --- a/gwsumm/plot/builtin.py +++ b/gwsumm/plot/builtin.py @@ -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])