From 0967c70d9d9218423038b4a086d42c3f03b59e4e Mon Sep 17 00:00:00 2001
From: pcain-usgs <pcain@usgs.gov>
Date: Tue, 21 Jul 2020 10:59:32 -0600
Subject: [PATCH] Merge if statements

---
 geomagio/algorithm/AdjustedAlgorithm.py | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/geomagio/algorithm/AdjustedAlgorithm.py b/geomagio/algorithm/AdjustedAlgorithm.py
index 281005b55..a4e65acb8 100644
--- a/geomagio/algorithm/AdjustedAlgorithm.py
+++ b/geomagio/algorithm/AdjustedAlgorithm.py
@@ -170,14 +170,11 @@ class AdjustedAlgorithm(Algorithm):
 
         # check validity of remaining channels
         for c in channels:
-            if c != "F":
-                if (
-                    super().can_produce_data(
-                        starttime, endtime, stream.select(channel=c)
-                    )
-                    == False
-                ):
-                    return False
+            if c != "F" and (
+                super().can_produce_data(starttime, endtime, stream.select(channel=c))
+                == False
+            ):
+                return False
 
         # return false if F or remaining channels cannot produce data
         return True
-- 
GitLab