Skip to content

Commit

Permalink
Remove old code because merge scverse/anndata#1057 (review)
Browse files Browse the repository at this point in the history
  • Loading branch information
berombau committed Jan 26, 2024
1 parent de324a4 commit 5b3c2a1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/spatialdata/_io/io_zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,7 @@ def read_zarr(store: Union[str, Path, zarr.Group], selection: Optional[tuple[str
continue
f_elem = group[subgroup_name]
f_elem_store = os.path.join(f_store_path, f_elem.path)
if isinstance(f.store, zarr.storage.ConsolidatedMetadataStore):
table = read_elem(f_elem)
# we can replace read_elem with read_anndata_zarr after this PR gets into a release (>= 0.6.5)
# https://github.com/scverse/anndata/pull/1057#pullrequestreview-1530623183
# table = read_anndata_zarr(f_elem)
else:
table = read_anndata_zarr(f_elem_store)
table = read_anndata_zarr(f_elem_store)
if TableModel.ATTRS_KEY in table.uns:
# fill out eventual missing attributes that has been omitted because their value was None
attrs = table.uns[TableModel.ATTRS_KEY]
Expand Down

0 comments on commit 5b3c2a1

Please sign in to comment.