You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/tmp/x", line 3, in <module>print(adata.raw.X[:10])
~~~~~~~~~~~^^^^^
File "/Users/kerl/.pyenv/versions/3.11.9/lib/python3.11/site-packages/anndata/_core/sparse_dataset.py", line 431, in __getitem__
sub =self.to_memory()[row_sp_matrix_validated, col_sp_matrix_validated]
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kerl/.pyenv/versions/3.11.9/lib/python3.11/site-packages/scipy/sparse/_index.py", line 30, in __getitem__
index, new_shape =self._validate_indices(key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kerl/.pyenv/versions/3.11.9/lib/python3.11/site-packages/scipy/sparse/_index.py", line 274, in _validate_indices
idx =self._asindices(idx, N)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kerl/.pyenv/versions/3.11.9/lib/python3.11/site-packages/scipy/sparse/_index.py", line 316, in _asindices
max_indx = x.max()
^^^^^^^
File "/Users/kerl/.pyenv/versions/3.11.9/lib/python3.11/site-packages/numpy/core/_methods.py", line 41, in _amaxreturn umr_maximum(a, axis, None, out, keepdims, initial, where)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: '>=' not supported between instances of 'int' and 'NoneType'
This is with anndata==0.11.1 and scipy==1.15.0rc1. I know you haven't done a release with the latter as a dependency -- please consider this a heads-up.
The text was updated successfully, but these errors were encountered:
OK, seems like we’re using scipy’s internal validator, which changed in 1.5 to return a tuple of idx, shape, i.e. a tuple[tuple[int, int], tuple[int, int]]
Please make sure these conditions are met
Report
Code:
Traceback:
Versions
This is with
anndata==0.11.1
andscipy==1.15.0rc1
. I know you haven't done a release with the latter as a dependency -- please consider this a heads-up.The text was updated successfully, but these errors were encountered: