OGGM / oggm-edu

Educational material about glaciers, powered by OGGM and MyBinder
http://edu.oggm.org
BSD 3-Clause "New" or "Revised" License
22 stars 28 forks source link

Numpy 2.0 incompatibility #194

Open Holmgren825 opened 1 week ago

Holmgren825 commented 1 week ago

Edu notebooks run on binder are currently not working due to a change in numpy 2.0: np.NaN was removed in the NumPy 2.0 release. Use np.nan instead. This is thrown in the flowline model, so needs to be fixed in OGGM, but this is a larger change. An easy fix here would be to pin numpy < 2.0.

fmaussion commented 1 week ago

I'm amazed the notebooks run on Binder at all. How about classroom?

Holmgren825 commented 1 week ago

No problem regarding this specific issue on 1.6.1. There is some bokeh related issue on 1.6.2.

fmaussion commented 1 week ago

1.6.2 we should fix.

Numpy 2.0 support will need more time, probably until end of year (cc @pat-schmitt in case he is not listening here)