Closed shikharmn closed 8 months ago
Thanks Shikhar. The code is in cython - so you'll need to change *_t (on the left hand) as well. I think it would be good to determine datatype of indices, indptr and use that.
Please raise a PR with the fixes
@shikharmn any update?
Hi @kunaldahiya, I was occupied with submissions but now have pushed PR #37 to fix this issue. The methods work with use_cython=True
as well now. I've included a small script in the PR text I used to verify correctness as well. Let me know if any changes are needed.
Tangentially in a separate issue, we can add tests to this library as well, making it easier to maintain and contribute to.
Approved the PR
Since numpy has deprecated the dtype
np.int
, therank
method and any methods that invoke that have been broken. This line usesnp.int
, which is at the root of this issue.A basic fix seems to be to just change that to
'int'
, which numpy recommends, along with multiple other changes.How to proceed? Am willing to take this up.
Error:
pip freeze: