Skip to content

Conversation

lucascolley
Copy link
Member

Reference issue

Closes gh-18279

What does this implement/fix?

Clears up all of the remaining instances for this issue, namely in io, misc, signal and fftpack. Also, one in linalg (which I assume just slipped through?)

Additional information

The only tricky module was scipy.misc.doccer which has been moved to scipy._lib.doccer. IIUC we can't use the helper for that, so I copy-pasted and modified appropriately.

I might have missed something, let's see what CI thinks.

@lucascolley lucascolley requested review from h-vetinari and j-bowhay and removed request for ilayn, larsoner and peterbell10 November 24, 2023 15:12
@lucascolley lucascolley added deprecated Items related to behavior that has been deprecated maintenance Items related to regular maintenance tasks labels Nov 24, 2023
@lucascolley lucascolley added this to the 1.12.0 milestone Nov 24, 2023
@lucascolley
Copy link
Member Author

Down to 2 failures on one of the CI runs, with misc.doccer and misc.common.arange - not sure how to resolve

Copy link
Member

@j-bowhay j-bowhay left a comment

Choose a reason for hiding this comment

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

RE the misc failures, I would be happy just to leave misc as the whole thing is deprecated anyway

('scipy.linalg.basic', None),
('scipy.linalg.decomp', None),
('scipy.linalg.decomp_cholesky', None),
('scipy.linalg.decomp_lu', None),
('scipy.linalg.decomp_qr', None),
('scipy.linalg.decomp_schur', None),
('scipy.linalg.decomp_svd', None),
('scipy.linalg.flinalg', None),
Copy link
Member

Choose a reason for hiding this comment

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

originally I didn't touch flinalg because, after the next release, there would be nothing left in it. In which case it seems logical at that point just to remove it however officially it is slated for 2.0.0 so there is an awkward contradiction. Any thoughts?

Copy link
Member

Choose a reason for hiding this comment

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

@h-vetinari do you have an opinion here?

Copy link
Member Author

Choose a reason for hiding this comment

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

@h-vetinari friendly ping here as we are a few days away from branching

@j-bowhay is there any harm in making the change here even if we do end up removing flinalg?

Copy link
Member

Choose a reason for hiding this comment

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

Plan on merging tomorrow if there are no further comments

@lucascolley
Copy link
Member Author

RE the misc failures, I would be happy just to leave misc as the whole thing is deprecated anyway

I think I've fixed them (see if CI agrees) - misc.common had some erroneous entries in __all__, and I've written a separate test for misc.doccer since the correct import is across subpackages (scipy._lib)

@lucascolley
Copy link
Member Author

CI is all green, your call on flinalg.

lucascolley and others added 2 commits December 4, 2023 10:44
Co-authored-by: Jake Bowhay <60778417+j-bowhay@users.noreply.github.com>
@j-bowhay j-bowhay merged commit a182c1e into scipy:main Dec 4, 2023
@lucascolley lucascolley deleted the dep-private branch December 4, 2023 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecated Items related to behavior that has been deprecated maintenance Items related to regular maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: deprecation warnings for private API are misleading
2 participants