SasView / sasmodels

Package for calculation of small angle scattering models using OpenCL.
BSD 3-Clause "New" or "Revised" License
16 stars 28 forks source link

NumPy 2.0.0 Breaking Changes #598

Open tsole0 opened 5 months ago

tsole0 commented 5 months ago

As of June 16th NumPy 2.0.0 has been released, updating a variety of functions and syntax. In many instances these changes are incompatible with the current state of the codebase and cause breaking changes. For instance, the change from np.NaN $\mapsto$ np.nan causes errors on line 82 of modelinfo.py:

def parse_parameter(name, units='', default=np.NaN,
                    user_limits=None, ptype='', description=''):

Although previously installed instances of SasView will still be able to run using out-of-date versions of NumPy, this will cause errors for new installations of SasView.