Skip to content

hdf5 dataset returns only 0's when indexed #665

@ilan-gold

Description

@ilan-gold

With the same data from #664 I was able to open a "shallow" group successfully but then the data was just 0's!

import virtualizarr

store = virtualizarr.parsers.HDFParser(group="X")("/Users/ilangold/sc_dataset.h5ad", object_store=obstore.store.LocalStore('./')) # needs fullly qualified path now?
zarr.open_group(store, mode="r", zarr_format=3) # evidently I need to specify v3 otherwise this crashes without finding an group?
assert sum(z["indices"][...]) == 0

but I can see that:

import h5py

with h5py.File("./sc_dataset.h5ad") as f:
    assert sum(f["X"]["indices"][...]) == 0

fails, as it should because there is more than just 0's located in this store!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions