Skip to content

Commit

Permalink
don't pick up embeddings with 'layers' in the name
Browse files Browse the repository at this point in the history
  • Loading branch information
nayib-jose-gloria committed Dec 23, 2024
1 parent 2df0e0d commit 6dddf18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cellxgene_schema_cli/cellxgene_schema/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def read_backed(f: h5py.File, chunk_size: int = 10_000) -> ad.AnnData:
"""

def callback(func, elem_name: str, elem, iospec):
if "layers" in elem_name or elem_name == "/X" or elem_name == "/raw/X":
if "/layers" in elem_name or elem_name == "/X" or elem_name == "/raw/X":
if iospec.encoding_type in (
"csr_matrix",
"csc_matrix",
Expand Down

0 comments on commit 6dddf18

Please sign in to comment.