numpy.machar class finfo.machar deprecated in NumPy 1.22, throws warning on import of thermoengine
Before opening a new issue, make sure to search for keywords in the issues filtered by the "regression" or "bug" label.
Summary
numpy.machar class finfo.machar is deprecated in NumPy 1.22. With that version of NumPy installed, a DeprecationWarning is written to the console when thermoengine is imported. It looks like thermoengine isn't using machar, but numdifftools is (see traceback below). Possible to silence this warning?
Steps to reproduce
(with NumPy 1.22+) import thermoengine
Relevant logs and/or screenshots
Traceback from DeprecationWarning
/Users/user-name-here/opt/anaconda3/lib/python3.9/site-packages/numdifftools/multicomplex.py:35: DeprecationWarning: finfo.machar
is deprecated (NumPy 1.22)
_TINY = np.finfo(float).machar.tiny
Possible fixes
Silence DeprecationWarnings in thermoengine.
Here are the release notes for numpy 1.22.0.
From that page, the relevant text:
The np.MachAr class has been deprecated The numpy.MachAr class and finfo.machar <numpy.finfo> attribute have been deprecated. Users are encouraged to access the property if interest directly from the corresponding numpy.finfo attribute.