Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anndata 0.11 and tiledbsome compatibility #914

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/base/openpipelinetestutils/asserters.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ def _assert_layer_equal(left, right):
raise AssertionError("Layers format differ:"
f"\n[left]:{left.getformat()}\n[right]: {right.getformat()}")
assert np.all(left.indices == right.indices), "Layers differ: indices are not the same"
assert (left.indices.dtype == left.indptr.dtype), \
"Problem with layer from 'left': dtype of sparce array 'inptr' and 'indices' are not the same"
assert (right.indices.dtype == right.indptr.dtype), \
"Problem with layer from 'right': dtype of sparce array 'inptr' and 'indices' are not the same"
assert (left.indices.dtype == right.indices.dtype), \
"Layers differ: dtype of sparce matrix 'indices' are different."
assert (left.indptr.dtype == right.indptr.dtype), \
"Layers differ: dtype of sparce matrix 'indptr' are different."
assert np.all(left.indptr == right.indptr), "Layers differ: index pointers are not the same"
np.testing.assert_allclose(left.data, right.data, rtol=1e-5,
err_msg="Layers data differs.", equal_nan=True)
Expand Down
1 change: 1 addition & 0 deletions src/query/cellxgene_census/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ engines:
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
packages:
- cellxgene-census
- tiledbsoma==1.15.0rc4
test_setup:
- type: python
__merge__: [ /src/base/requirements/viashpy.yaml, .]
Expand Down