Skip to content
Snippets Groups Projects
Commit aee55cf2 authored by Nils-Arne Dreier's avatar Nils-Arne Dreier
Browse files

fix: only assert same shape and chunk shape in spatial dimension

parent 59331e02
No related branches found
No related tags found
1 merge request!47[hiopy] refactor variable handling and distribution
......@@ -105,11 +105,11 @@ def distribute_work(grouped_data_vars, size):
variables = grouped_data_vars.pop(group)
assert all(
variables[0].shape == v.shape for v in variables
), "All variables in a group need to have the same shape"
variables[0].shape[-1] == v.shape[-1] for v in variables
), "All variables in a group need to have the same spatial shape"
assert all(
variables[0].chunks == v.chunks for v in variables
), "All variables in a group need to have the same chunk shape"
variables[0].chunks[-1] == v.chunks[-1] for v in variables
), "All variables in a group need to have the same spatial chunk shape"
if gsize > bytes_per_rank:
# Compute the number of ranks required for this group
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment