Describe the bug
When constructing a matrix with sparse.DOK and converting it to COO, it always raises "DeprecationWarning: coords should be an ndarray", although I do not provide coords at all. Internally, sparse passes the DOK instance instead of a Numpy array.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "…/lib/python3.9/site-packages/sparse/_dok.py", line 210, in to_coo
return COO(self)
File "…/lib/python3.9/site-packages/sparse/_coo/core.py", line 215, in __init__
warnings.warn(
DeprecationWarning: coords should be an ndarray. This will raise a ValueError in the future.
Describe the bug When constructing a matrix with
sparse.DOK
and converting it toCOO
, it always raises "DeprecationWarning: coords should be an ndarray", although I do not provide coords at all. Internally, sparse passes the DOK instance instead of a Numpy array.To Reproduce
Expected behavior No warning is raised.
System
sparse
version: 0.15.1