Skip to content

Commit c43c694

Browse files
committed
Update LocalStore to DirectoryStore
Local environment was desynced with CI - accidentally included zarr v3 code. Let's stick to v2 for now then upgrade later
1 parent 79e4420 commit c43c694

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

parcels/particlefile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import numpy as np
1111
import xarray as xr
1212
import zarr
13-
from zarr.storage import LocalStore
13+
from zarr.storage import DirectoryStore
1414

1515
import parcels
1616
from parcels._reprs import default_repr
@@ -301,10 +301,10 @@ def write_latest_locations(self, pset, time):
301301
self.write(pset, time)
302302

303303

304-
def _get_store_from_pathlike(path: Path | str) -> LocalStore:
304+
def _get_store_from_pathlike(path: Path | str) -> DirectoryStore:
305305
path = str(Path(path)) # Ensure valid path, and convert to string
306306
extension = os.path.splitext(path)[1]
307307
if extension != ".zarr":
308308
raise ValueError(f"ParticleFile name must end with '.zarr' extension. Got path {path!r}.")
309309

310-
return LocalStore(path)
310+
return DirectoryStore(path)

0 commit comments

Comments
 (0)