Skip to content

Commit

Permalink
minimize diff
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Aug 1, 2024
1 parent 75e6504 commit 0c11508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flox/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def invert(x) -> tuple[np.ndarray, ...]:
]
cohort_ = present_labels[cohidx]
cohort = [elem.item() for elem in cohort_ if elem not in merged_keys]
if len(cohort) == 0:
if not cohort:
continue
merged_keys.update(cohort)
allchunks = (label_chunks[member].tolist() for member in cohort)
Expand Down

0 comments on commit 0c11508

Please sign in to comment.