Skip to content

Commit 75ccb1d

Browse files
langmoreWeatherbench2 authors
authored and
Weatherbench2 authors
committed
Pytype fix in WB2/compute_statistical_moments.py
PiperOrigin-RevId: 588066434
1 parent 8b40fb6 commit 75ccb1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/compute_statistical_moments.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ def main(argv: list[str]) -> None:
154154
)
155155
# Rechunk in time
156156
pcoll_time = pcoll_tmp | f'RechunkTime_{order}' >> xbeam.Rechunk(
157-
space_reduce_template.sizes,
157+
# Convert to string to satisfy pytype.
158+
{str(k): v for k, v in space_reduce_template.sizes.items()},
158159
reduce_working_chunks,
159160
time_working_chunks,
160161
itemsize=RECHUNK_ITEMSIZE.value,

0 commit comments

Comments
 (0)