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

Remove np.all in can_produce_data

parent 9ef4633e
No related branches found
No related tags found
1 merge request!6Remove np.all in can_produce_data
......@@ -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
......
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