Skip to content

Commit 9f20ae2

Browse files
committed
Remove halucinated chunked writing option from Zarr conversion in loca2.py and update corresponding test to reflect this change.
1 parent d9cc0d0 commit 9f20ae2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

downscaled_climate_data/assets/loca2.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ def loca2_zarr(context: dg.AssetExecutionContext, s3: S3Resource):
107107
ds.to_zarr(
108108
store=store,
109109
mode='w', # Overwrite if exists
110-
consolidated=True, # Write metadata to a single consolidated file
111-
chunked=True # Enable chunked writing
110+
consolidated=True # Write metadata to a single consolidated file
112111
)
113112

114113
# Close the dataset to free memory

tests/assets/test_loca2_zarr.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ def test_as_zarr_asset(mock_s3fs, mock_xarray, mocker):
7575
mock_ds.to_zarr.assert_called_with(
7676
store=mock_s3fs.S3Map.return_value,
7777
mode='w',
78-
consolidated=True,
79-
chunked=True
78+
consolidated=True
8079
)
8180

8281
mock_ds.close.assert_called()

0 commit comments

Comments
 (0)