Skip to content

Commit

Permalink
Fix for divide by 0 issue (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
norlandrhagen authored Jan 12, 2023
1 parent 3d67df1 commit 7b570de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flows/ncview_rechunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def process_dataset(
result[value] = min(spatial_chunk_square_size, sizes[value])
for dim in variable_dims:
if dim not in result.keys():
result[dim] = -1
result[dim] = sizes[dim]

chunks_dict[variable] = result

Expand Down

0 comments on commit 7b570de

Please sign in to comment.