diff --git a/geomagio/algorithm/AdjustedAlgorithm.py b/geomagio/algorithm/AdjustedAlgorithm.py index f42353bb0afd26dd15a16c2e4923bfac795bb16a..0c1bbf2f646283c76dc20d40f79cbd31f2625c7d 100644 --- a/geomagio/algorithm/AdjustedAlgorithm.py +++ b/geomagio/algorithm/AdjustedAlgorithm.py @@ -169,14 +169,11 @@ class AdjustedAlgorithm(Algorithm): return True # check validity of remaining channels - if np.all( - [ + for c in channels: + if c != "F" and not ( super().can_produce_data(starttime, endtime, stream.select(channel=c)) - for c in channels - if c != "F" - ] - ): - return True + ): + return False # return false if F or remaining channels cannot produce data return False