Re: Deprecating numpy.fix
Ralf Gommers via NumPy-Discussion <[email protected]> Tue, 11 Nov 2025 14:58:00 +0100
| Newsgroups | gmane.comp.python.numeric.general |
|---|---|
| Message-ID | <CABL7CQhx-dLvKwcpdNDx48mSOGpNJFRBJWCD=yqvi_fjqqaBaw@mail.gmail.com> |
On Tue, Nov 11, 2025 at 2:48 PM Veit Heller <[email protected]> wrote: > As another point of consideration, I also contributed changes to > PyWavelets, Pandas, and scikit-image to replace all occurrences of `np.fix` > with `np.trunc`, so that might also help further things along. > Thanks a lot for those contributions Veit! This is certainly optional, but if you feel motivated to add the deprecation to Ruff, that would probably be the easiest way to reach a broader audience. See the docs at https://docs.astral.sh/ruff/rules/numpy-deprecated-function/ and the PR that added NPY003: https://github.com/astral-sh/ruff/pull/5468. That strategy was also quite useful to add NumPy 2.0-specific rules with autofix implementations where possible. Cheers, Ralf > > I would have made more broad contributions, but GitHub unfortunately > limits the number of search results you can actually see to 5 pages > (meaning that, for instance, none of the above repositories made it into > the list aggregated by GitHub). It makes hunting the more important > occurrences of the function a bit harder to track down. > _______________________________________________ > NumPy-Discussion mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3//lists/numpy-discussion.python.org > Member address: [email protected] > _______________________________________________ NumPy-Discussion mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/numpy-discussion.python.org Member address: [email protected]