martinjzhang / scDRS

Single-cell disease relevance score (scDRS)
https://martinjzhang.github.io/scDRS/
MIT License
114 stars 16 forks source link

Replace np.float_ with np.float64 #106

Closed mkanai closed 1 month ago

mkanai commented 1 month ago

This PR fixes the following error caused by the deprecation of np.float_ in the NumPy 2.0 release

AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.. Did you mean: 'float16'?
martinjzhang commented 1 month ago

@KangchengHou , I think you implemented this part. Should it be changed to np.float32 instead of np.float64 to keep the low-precision efficiency?

KangchengHou commented 1 month ago

I believe the speed is not a main concern here - np.float64 should do fine