Skip to content

Commit

Permalink
fix multidim rechunk error
Browse files Browse the repository at this point in the history
  • Loading branch information
cisaacstern committed Mar 1, 2024
1 parent 2d0c119 commit 4780101
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pangeo_forge_recipes/rechunking.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def _invert_meshgrid(*arrays):
selectors[n] = tuple(selectors[n])
xi = [a[s] for a, s in zip(arrays, selectors)]
assert all(
np.equal(actual, expected).all() for actual, expected in zip(arrays, np.meshgrid(*xi))
np.equal(actual, expected.squeeze()).all()
for actual, expected in zip(arrays, np.meshgrid(*xi))
)
return xi

Expand Down

0 comments on commit 4780101

Please sign in to comment.