Closed jhlegarreta closed 1 week ago
First I used numpy._core.fromnumeric
following the warning, but got inspired later by Serge in
https://github.com/dipy/dipy/pull/3274/commits/06edd043ca6da762d5a713688a93c8b6eee1ab42#diff-9b8d8e5f8c3c95a0b5447aec5dde61021e5ee6848a22c4952059d0a8764011f6R76
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 92.19%. Comparing base (
0bd95cd
) to head (3a7ceba
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
doctest
failures are unrelated.
Use
numpy.lib.scimath
instead of deprecatednumpy.core.fromnumeric
inclear_and_catch_warnings
context manager doctests.Take advantage of the commit to add an actual case that would raise a warning.
Fixes:
raised for example at: https://github.com/nipy/nibabel/actions/runs/9692730430/job/26746686623#step:7:195