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

Deprecate top level imports #1433

Merged
merged 3 commits into from
Oct 31, 2022

Conversation

larrybradley
Copy link
Member

This PR requires that importing tools from all subpackages now requires including the subpackage name, e.g., from photutils.aperture import CircularAperture instead of from photutils import CircularAperture. The photutils package has significantly grown over time with many different subpackages. Requiring the using the user to explicitly use the subpackage name improves the import performance and is common in other packages (e.g. scipy, astropy, specutils, etc.). It also prevents namespace confusion (e.g., #1065).

Closes #1065.
Followup to #1190.

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.

Confusion between photutils.utils and photutils.psf.utils
1 participant