Skip to content

Commit

Permalink
oops pathlib does not work with gcs
Browse files Browse the repository at this point in the history
  • Loading branch information
jbusecke committed Apr 8, 2024
1 parent 0f20918 commit 4090699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update_attrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def update_zarr_attrs(store_path:str, additonal_attrs:dict):
"""
Update the attributes of a zarr store with the given dictionary
"""
store = zarr.open(zarr.storage.FSStore(pathlib.Path(store_path)), mode='a')
store = zarr.open(zarr.storage.FSStore(store_path), mode='a')
store.attrs.update(additonal_attrs)
zarr.convenience.consolidate_metadata(store_path) #Important: do not pass the store object here!
return store_path
Expand Down

0 comments on commit 4090699

Please sign in to comment.