Skip to content

Conversation

@nathanjmcdougall
Copy link
Contributor

Replace np.core.records.fromarrays with np.rec.fromarrays in pyemu/mat/mat_handler.py.

The np.core module is deprecated and emits a warning (e.g. when running the test suite).

pyemu\mat\mat_handler.py:2055: DeprecationWarning: numpy.core is deprecated and has been renamed to numpy._core. The numpy._core namespace contains private NumPy internals and its use is discouraged, as NumPy internals can change without warning in any release. In practice, most real-world usage of numpy.core is to access functionality in the public NumPy API. If that is the case, use the public NumPy API. If not, you are using NumPy internals. If you would still like to access an internal attribute, use numpy._core.records.

…_handler.py`

The `np.core` module is deprecated and emits a warning:

```
pyemu\mat\mat_handler.py:2055: DeprecationWarning: numpy.core is deprecated and has been renamed to numpy._core. The numpy._core namespace contains private NumPy internals and its use is discouraged, as NumPy internals can change without warning in any release. In practice, most real-world usage of numpy.core is to access functionality in the public NumPy API. If that is the case, use the public NumPy API. If not, you are using NumPy internals. If you would still like to access an internal attribute, use numpy._core.records.
```
@coveralls
Copy link

Coverage Status

coverage: 77.921% (+0.05%) from 77.871%
when pulling ca56dd7 on nathanjmcdougall:fix/avoid-deprecated-numpy-core-module
into 5dd3c78 on pypest:develop.

@briochh briochh merged commit 9f44f64 into pypest:develop Dec 15, 2025
23 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants