Skip to content

Commit

Permalink
Pytype fix in WB2/compute_statistical_moments.py
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 587787044
  • Loading branch information
langmore authored and Weatherbench2 authors committed Dec 5, 2023
1 parent 8b40fb6 commit ea2515b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/compute_statistical_moments.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ def main(argv: list[str]) -> None:
)
# Rechunk in time
pcoll_time = pcoll_tmp | f'RechunkTime_{order}' >> xbeam.Rechunk(
space_reduce_template.sizes,
# Convert to string to satisfy pytype.
{str(k): v for k, v in space_reduce_template.sizes.items()},
reduce_working_chunks,
time_working_chunks,
itemsize=RECHUNK_ITEMSIZE.value,
Expand Down

0 comments on commit ea2515b

Please sign in to comment.