mapping-commons / sssom-py

Python toolkit for SSSOM mapping format
https://mapping-commons.github.io/sssom-py/index.html#
MIT License
48 stars 10 forks source link

Numpy 2.0 compatibility #543

Closed bgyori closed 1 month ago

bgyori commented 1 month ago

Numpy has just released 2.0 and removed np.NAN in favor of np.nan. This line with a type annotation is therefore erroring in all downstream dependencies where the numpy version is not explicitly limited:

https://github.com/mapping-commons/sssom-py/blob/master/src/sssom/util.py#L658

I assume we can just change all relevant instances to np.nan and make a new sssom-py release to avoid this.