Skip to content

Commit 8074978

Browse files
author
Weatherbench2 authors
committed
Merge pull request #263 from langmore:fix-chunk-sizes
PiperOrigin-RevId: 764628744
2 parents fd73982 + 8e95704 commit 8074978

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ docs/source/.ipynb_checkpoints
99
docs/*.zarr
1010
__pycache__
1111
.pytest_cache
12+
*swp

scripts/compute_probabilistic_climatological_forecasts.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,9 @@ def make_index_info(timedelta: np.ndarray, timedelta_offset: int):
939939
}
940940
) # fmt: skip
941941
output_chunks.update(OUTPUT_CHUNKS.value)
942+
output_chunks = {
943+
k: min(output_chunks[k], template.sizes[k]) for k in output_chunks
944+
}
942945

943946
itemsize = max(var.dtype.itemsize for var in template.values())
944947

0 commit comments

Comments
 (0)