We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 717747a commit fbbe916Copy full SHA for fbbe916
util/analyze/utils.py
@@ -55,6 +55,15 @@ def zipped_keep_blocks_if(*logs, pred):
55
except TypeError:
56
old_pred = pred
57
pred = lambda *blks: all(old_pred(b) for b in blks)
58
+ except StopIteration:
59
+ # There was nothing in zip(*logs)...
60
+ old_pred = pred
61
+ def new_pred(*blks):
62
+ try:
63
+ return old_pred(*blks)
64
+ except TypeError:
65
+ return all(old_pred(b) for b in blks)
66
+ pred = new_pred
67
68
def zip_benchmarks_if(*benchmarks):
69
# (A[a], A[a]) -> [(a, a)] or []
0 commit comments