Skip to content

DEP: Deprecate numpy.dual.#16156

Merged
seberg merged 3 commits into
numpy:masterfrom
WarrenWeckesser:deprecate-dual
May 19, 2020
Merged

DEP: Deprecate numpy.dual.#16156
seberg merged 3 commits into
numpy:masterfrom
WarrenWeckesser:deprecate-dual

Conversation

@WarrenWeckesser
Copy link
Copy Markdown
Member

@WarrenWeckesser WarrenWeckesser commented May 4, 2020

Add a deprecation warning in the numpy.dual module, and
remove the use of numpy.dual from the few places where it
is used in the numpy code.

Add a deprecation warning in the `numpy.dual` module, and
remove the use of `numpy.dual` from the few places where it
is used in the numpy code.
@WarrenWeckesser
Copy link
Copy Markdown
Member Author

Mailing list discussion from January: https://mail.python.org/pipermail/numpy-discussion/2020-January/080308.html

Copy link
Copy Markdown
Contributor

@rossbar rossbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be appropriate to add a .. deprecated:: 1.19 tag (assuming this makes it to 1.19) to the module docstring (in numpy/dual.py) or is that typically only used inside function docstrings? It does look like the numpy/dual.py module docstring gets picked up via an .. automodule and built into the reference so maybe that would be useful? I'm not sure so I thought I'd ask!

@rgommers
Copy link
Copy Markdown
Member

rgommers commented May 5, 2020

Please not yet for 1.19.0 - that will start emitting deprecation warnings for the latest releases of Scipy too soon.

@WarrenWeckesser
Copy link
Copy Markdown
Member Author

@rgommers, agreed, this can wait until after 1.19.0 is released.

Can someone with the correct permissions add a 1.20.0 milestone to github?

@seberg seberg modified the milestones: 1.19.0 release, 1.20.0 release May 5, 2020
@rgommers
Copy link
Copy Markdown
Member

rgommers commented May 5, 2020

Can someone with the correct permissions add a 1.20.0 milestone to github?

you now have triage permissions

@WarrenWeckesser
Copy link
Copy Markdown
Member Author

Thanks @seberg and @rgommers.

@rossbar, good idea, I've added that in a new commit.

@seberg
Copy link
Copy Markdown
Member

seberg commented May 19, 2020

Now that master is on 1.20, lets put this in, thanks Warren!

@seberg seberg merged commit 8ab709c into numpy:master May 19, 2020
@WarrenWeckesser WarrenWeckesser deleted the deprecate-dual branch May 19, 2020 13:41
tpeulen added a commit to Fluorescence-Tools/chisurf that referenced this pull request Dec 19, 2024
numpy dual is deprecated import
from numpy linalg instead,

details see:
numpy/numpy#16156
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants