Skip to content

Commit 9c2679a

Browse files
author
Kit Schwarz
committed
ag input processing
1 parent 234dec8 commit 9c2679a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dscim/preprocessing/input_damages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ def process_batch(g):
346346
)
347347
batches = xr.where(np.isinf(batches), np.nan, batches)
348348

349-
batches.rename({"wc_reallocation": varname}).to_zarr(
350-
save_path, mode="w", consolidated=True
349+
batches.rename({"wc_reallocation": varname})[varname].to_zarr(
350+
save_path, mode="a", consolidated=True
351351
)
352352

353353

0 commit comments

Comments
 (0)