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): ...@@ -169,17 +169,18 @@ class AdjustedAlgorithm(Algorithm):
return True return True
# check validity of remaining channels # check validity of remaining channels
cpd = False
for c in channels: for c in channels:
if c != "F": if c != "F":
cpd = super().can_produce_data( if (
starttime, endtime, stream.select(channel=c) super().can_produce_data(
) starttime, endtime, stream.select(channel=c)
if cpd == True: )
return True == False
):
return False
# return false if F or remaining channels cannot produce data # return false if F or remaining channels cannot produce data
return False return True
@classmethod @classmethod
def add_arguments(cls, parser): 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