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