diff --git a/geomagio/edge/EdgeFactory.py b/geomagio/edge/EdgeFactory.py index af00ee0612e2528d6c1332f77744e52dbf223b18..795eb2ebfda0ce4f5c73a059f05c760ef1c693b1 100644 --- a/geomagio/edge/EdgeFactory.py +++ b/geomagio/edge/EdgeFactory.py @@ -604,6 +604,10 @@ class EdgeFactory(TimeseriesFactory): stream = self._convert_stream_to_masked(timeseries=timeseries, channel=channel) + # Make certain there's actually data + if not numpy.ma.any(stream.select(channel=channel)[0].data): + return + for trace in stream.select(channel=channel).split(): trace_send = trace.copy() trace_send.trim(starttime, endtime)