Skip to content

Commit a8e59e5

Browse files
committed
update to isinstance check
1 parent 52d2f6a commit a8e59e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parcels/particlefile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def write(self, pset, time: float | timedelta | np.timedelta64 | None, indices=N
348348
self._create_new_zarrfile = False
349349
else:
350350
# Either use the store that was provided directly or create a DirectoryStore:
351-
if issubclass(type(self.fname), zarr.storage.Store):
351+
if isinstance(self.fname, zarr.storage.Store):
352352
store = self.fname
353353
else:
354354
store = zarr.DirectoryStore(self.fname)

0 commit comments

Comments
 (0)