From df560400e6fb8bf5d3bc9f6eb744762703237649 Mon Sep 17 00:00:00 2001
From: pcain-usgs <pcain@usgs.gov>
Date: Tue, 20 Oct 2020 16:44:42 -0600
Subject: [PATCH] Simplify if statement in controller

---
 geomagio/Controller.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geomagio/Controller.py b/geomagio/Controller.py
index 418e32b5..b6d768b3 100644
--- a/geomagio/Controller.py
+++ b/geomagio/Controller.py
@@ -187,7 +187,7 @@ class Controller(object):
             )
         processed = algorithm.process(timeseries)
         # trim if --no-trim is not set
-        if options.output_interval not in [None, "tenhertz", "second", "minute"]:
+        if options.output_interval in ["hour", "day"]:
             starttime = processed[0].stats.starttime
             endtime = processed[0].stats.endtime
         if not options.no_trim:
-- 
GitLab