Skip to content
Snippets Groups Projects
Commit 4f02c4c3 authored by Cain, Payton David's avatar Cain, Payton David
Browse files

Process all channels with can_produce_data

parent f138aeec
No related branches found
No related tags found
1 merge request!6Remove np.all in can_produce_data
......@@ -169,17 +169,18 @@ class AdjustedAlgorithm(Algorithm):
return True
# check validity of remaining channels
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
if (
super().can_produce_data(
starttime, endtime, stream.select(channel=c)
)
== False
):
return False
# return false if F or remaining channels cannot produce data
return False
return True
@classmethod
def add_arguments(cls, parser):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment