diff --git a/geomagio/Controller.py b/geomagio/Controller.py index adf42c832281298b5f26efb82c4013453d740cc3..2d6bf659c4f795ca0c58a4af26d5ec67ab8e87ff 100644 --- a/geomagio/Controller.py +++ b/geomagio/Controller.py @@ -186,6 +186,8 @@ class Controller(object): timeseries=timeseries, renames=options.rename_input_channel ) processed = algorithm.process(timeseries) + # for averaging filter steps, return data with aligned starttime/endtime + # if no data is available, return empty trace with aligned starttime/endtime if options.output_interval in ["hour", "day"]: starttime = processed[0].stats.starttime endtime = processed[0].stats.endtime