Skip to content

Commit

Permalink
avoid FSStore bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sanath-2024 committed Sep 2, 2022
1 parent 2258857 commit 9d787d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/mdio/api/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ def _connect(self):
self.root = zarr.open_consolidated(
store=self.store,
mode=self.mode,
metadata_key="zmetadata"
)
except KeyError as e:
msg = (
Expand Down
2 changes: 1 addition & 1 deletion src/mdio/converters/segy.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,4 @@ def segy_to_mdio(
disk_cache=False, # Making sure disk caching is disabled
)

zarr.consolidate_metadata(store_nocache)
zarr.consolidate_metadata(store_nocache, metadata_key="zmetadata")
2 changes: 1 addition & 1 deletion tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def mock_mdio(
chunks=data_arr.chunks[:-1], # Same spatial chunks as data
)

consolidate_metadata(mock_store)
consolidate_metadata(mock_store, metadata_key="zmetadata")

return zarr_root

Expand Down

0 comments on commit 9d787d7

Please sign in to comment.