Skip to content

Commit

Permalink
fix _map_complete_blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenworsley committed Feb 21, 2024
1 parent 78e8772 commit bb2dadb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esmf_regrid/schemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def _map_complete_blocks(src, func, active_dims, out_sizes, *args, **kwargs):
if num_out == 1:
out_chunks[sorted_dims[0]] = out_sizes[0]
else:
for dim, size in zip(dims, out_sizes):
for dim, size in zip(active_dims, out_sizes):
# Note: when mapping 2D to 2D, this will be the only alteration to
# out_chunks, the same as iris._lazy_data.map_complete_blocks
out_chunks[dim] = size
Expand Down

0 comments on commit bb2dadb

Please sign in to comment.