Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated arguments from astropy.stats #12200

Merged
merged 1 commit into from Oct 11, 2021

Conversation

eerovaher
Copy link
Member

@eerovaher eerovaher commented Sep 27, 2021

Description

The bls and lombscargle modules were deprecated in #8591.
The keyword arguments removed in this pull request were deprecated in #9408.

Checklist for package maintainer(s)

This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.

  • Do the proposed changes actually accomplish desired goals?
  • Do the proposed changes follow the Astropy coding guidelines?
  • Are tests added/updated as required? If so, do they follow the Astropy testing guidelines?
  • Are docs added/updated as required? If so, do they follow the Astropy documentation guidelines?
  • Is rebase and/or squash necessary? If so, please provide the author with appropriate instructions. Also see "When to rebase and squash commits".
  • Did the CI pass? If no, are the failures related? If you need to run daily and weekly cron jobs as part of the PR, please apply the Extra CI label.
  • Is a change log needed? If yes, did the change log check pass? If no, add the no-changelog-entry-needed label. If this is a manual backport, use the skip-changelog-checks label unless special changelog handling is necessary.
  • Is a milestone set? Milestone must be set but astropy-bot check might be missing; do not let the green checkmark fool you.
  • At the time of adding the milestone, if the milestone set requires a backport to release branch(es), apply the appropriate backport-X.Y.x label(s) before merge.

@github-actions github-actions bot added the stats label Sep 27, 2021
@pllim pllim added this to the v5.0 milestone Sep 27, 2021
Copy link
Member

@larrybradley larrybradley left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@bsipocz
Copy link
Member

bsipocz commented Sep 27, 2021

I'm worried that there is still a lot of code outside that imports these from astropy.stats, and I would argue the need for longer deprecation.

Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

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

I would keep LS and BLS for one more LTS cycle, the rest looks good.

from .bls import * # noqa

# This is to avoid importing deprecated modules in subpackage star import
__all__ = []
Copy link
Member

Choose a reason for hiding this comment

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

This way of populating the namespace is actually quite nice, so I would keep it anyway as opposed to rely on * imports.

Copy link
Member Author

Choose a reason for hiding this comment

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

If we are not removing the deprecated modules then this file can't be changed either.

@eerovaher
Copy link
Member Author

The bls and lombscargle modules were deprecated in astropy 3.2, so they have already been kept for more than one full LTS cycle.

@bsipocz
Copy link
Member

bsipocz commented Sep 27, 2021

@eerovaher - my point stands, based on the experience of teaching and working with many people using these functions. There are still many importing these from astroML, and also from gatspy. So if you aim to stay user friendly, then it's being kept for longer. After all, e.g. clobber hasn't been removed at the first possible occasion either.

Copy link
Member

@larrybradley larrybradley left a comment

Choose a reason for hiding this comment

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

Given the comments from @bsipocz , can you please update this PR to include only the deprecated renamed arguments?

@eerovaher eerovaher changed the title Remove deprecated code from astropy.stats Remove deprecated arguments from astropy.stats Sep 28, 2021
Copy link
Member

@nstarman nstarman left a comment

Choose a reason for hiding this comment

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

It looks like all changes requested by @bsipocz and @larrybradley are complete.
LGTM! Thanks @eerovaher.

Copy link
Member

@larrybradley larrybradley left a comment

Choose a reason for hiding this comment

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

Thanks, @eerovaher.

@larrybradley larrybradley merged commit 8aba963 into astropy:main Oct 11, 2021
@eerovaher eerovaher deleted the rm-deprecated-stats branch October 25, 2021 17:28
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.

None yet

5 participants