Skip to content

Commit d1cb597

Browse files
Support for zarr stores that don't have a path
1 parent dcc1699 commit d1cb597

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

parcels/particleset.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,11 @@ def execute(
535535

536536
# Set up pbar
537537
if output_file:
538-
logger.info(f"Output files are stored in {output_file.store.path}")
538+
if hasattr(output_file.store, "path"):
539+
zarr_path = output_file.store.path
540+
else:
541+
zarr_path = output_file.store
542+
logger.info(f"Output files are stored in {zarr_path}")
539543

540544
if verbose_progress:
541545
pbar = tqdm(total=(end_time - start_time) / np.timedelta64(1, "s"), file=sys.stdout)

0 commit comments

Comments
 (0)