Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhassell committed Jun 17, 2024
1 parent 503bf18 commit b7c1723
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cf/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,10 @@ def _binary_operation(self, other, method):
x[identity] = key

if x:
# Get the sorted identities (sorted so that
# they're comparable between fields) and their
# corresponding keys.
#
# E.g. {2:3, 4:6, 1:7} -> (1, 2, 4), (7, 3, 6)
identity, keys = tuple(zip(*sorted(x.items())))
coords = tuple(
Expand Down

0 comments on commit b7c1723

Please sign in to comment.