Skip to content

Commit

Permalink
cleaned
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Dec 1, 2023
1 parent 603f7cd commit bdd6d7b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
12 changes: 0 additions & 12 deletions src/hdmf_zarr/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,17 +437,6 @@ def write_builder(self, **kwargs):
# Consolidate metadata for the entire file after everything has been written
zarr.consolidate_metadata(store=self.path)

# def consolidate_metadata(store):
# """
# When a file is written, the metadata within the file is consolidated automatically.
# If there are any metadata changes, the user needs to consolidate the metadata again
# with this method in order for the metadata to be read correctly.
#
# Consolidate all metadata for groups and arrays within the given store into a
# single resource and put it under .zmetadata.
# """
# zarr.consolidate_metadata(store, metadata_key='.zmetadata')

@staticmethod
def __get_store_path(store):
"""
Expand All @@ -456,7 +445,6 @@ def __get_store_path(store):
retrieve the path.
"""
if isinstance(store, zarr.storage.ConsolidatedMetadataStore):
# breakpoint()
fpath = store.store.path
else:
fpath = store.path
Expand Down
9 changes: 0 additions & 9 deletions tests/unit/test_zarrio.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,3 @@ def test_get_store_path_deep(self):
path = ZarrIO._ZarrIO__get_store_path(store)
expected_path = os.path.normpath(os.path.join(CUR_DIR, 'test_consolidate.zarr'))
self.assertEqual(path, expected_path)

# def test_warning_consolidate_metadata(self):
# pass
#
# def test_open_with_zmetadata(self):
# pass
#
# def test_open_with_zmetadata_references(self):
# pass

0 comments on commit bdd6d7b

Please sign in to comment.