Skip to content

Commit 8e31d4f

Browse files
Fix download_only also in remote/Zarr
1 parent 106e926 commit 8e31d4f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/parcels/_datasets/remote.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,10 @@ def __init__(self, pup, path_relative_to_pup, zarr_format: Literal[2, 3] = 3):
186186
self.path_relative_to_root = path_relative_to_pup
187187
self.zarr_format = zarr_format
188188

189-
def open_dataset(self) -> xr.Dataset:
189+
def open_dataset(self, download_only=False) -> xr.Dataset:
190190
self.pup.fetch(self.path_relative_to_root)
191+
if download_only:
192+
raise ValueError("download_only is not supported for zarr datasets.")
191193
return xr.open_zarr(ZipStore(Path(self.pup.path) / self.path_relative_to_root), zarr_format=self.zarr_format)
192194

193195

0 commit comments

Comments
 (0)