Skip to content

Commit

Permalink
test_staging_area
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Apr 19, 2024
1 parent b9bbe03 commit f4f9a02
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lindi/LindiH5pyFile/LindiH5pyFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,12 @@ def to_reference_file_system(self):
"""
if self._zarr_store is None:
raise Exception("Cannot convert to reference file system without zarr store")
if not isinstance(self._zarr_store, LindiReferenceFileSystemStore):
zarr_store = self._zarr_store
if isinstance(zarr_store, LindiStagingStore):
zarr_store = zarr_store._base_store
if not isinstance(zarr_store, LindiReferenceFileSystemStore):
raise Exception(f"Unexpected type for zarr store: {type(self._zarr_store)}")
rfs = self._zarr_store.rfs
rfs = zarr_store.rfs
rfs_copy = json.loads(json.dumps(rfs))
LindiReferenceFileSystemStore.replace_meta_file_contents_with_dicts(rfs_copy)
return rfs_copy
Expand Down

0 comments on commit f4f9a02

Please sign in to comment.