MassimoCimmino / pygfunction

An open-source toolbox for the evaluation of thermal response factors (g-functions) of geothermal borehole fields.
BSD 3-Clause "New" or "Revised" License
48 stars 21 forks source link

Compatibility with numpy 2.0 #284

Closed wouterpeere closed 5 months ago

wouterpeere commented 5 months ago

The latest numpy version (2.0), released yesterday 06/16/2024, has breaking changes in comparison with v1.* For pygfunction, this is rather minor, since only the np.cfloat should be changed to np.complex128 in the pipes module.

Since in the requirements of pygfunction, no upper boundary on the numpy version is defined, this can lead to major failures when installing pygfunction on a new venv.

MassimoCimmino commented 5 months ago

Thank you @wouterpeere.

This closes #285. #285 and #266 should be the last two issues leading to v2.2.3. I am hopeful I can finish these up by the end of next week.