From ce85b6f107e63aabf5f174a831f88007f2d69e83 Mon Sep 17 00:00:00 2001
From: pcain-usgs <pcain@usgs.gov>
Date: Tue, 27 Oct 2020 12:17:29 -0600
Subject: [PATCH] Remove adaptations to controller trimming

---
 geomagio/Controller.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/geomagio/Controller.py b/geomagio/Controller.py
index 2d6bf659c..7111ef576 100644
--- a/geomagio/Controller.py
+++ b/geomagio/Controller.py
@@ -186,11 +186,6 @@ 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
         # trim if --no-trim is not set
         if not options.no_trim:
             processed.trim(starttime=starttime, endtime=endtime)
-- 
GitLab