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

Clean up util imports #7561

Merged
merged 1 commit into from May 15, 2024
Merged

Clean up util imports #7561

merged 1 commit into from May 15, 2024

Conversation

Cadair
Copy link
Member

@Cadair Cadair commented Apr 8, 2024

This will address #7560 but isn't really a "fix".

We need to be very careful with what we import at the top level inside util as we import it from the top sunpy namespace, and large import paths will slow that down and also occasionally cause weird issues (apparently).

This is a quick fix, but I am unsure what we should do about this to make sure we keep the import hygiene in util?

Copy link
Member

@alasdairwilson alasdairwilson left a comment

Choose a reason for hiding this comment

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

I am fine with this but this decorator is literally only used inside mapbase (indeed it is spec cifically designed for map arithmetic), why can't it just be put there? Is there something I am missing.

@Cadair
Copy link
Member Author

Cadair commented Apr 9, 2024

I mean, that seems sensible yeah.

@nabobalis
Copy link
Contributor

We do need to deal with util.

@nabobalis nabobalis added this to the 6.0.0 milestone May 8, 2024
@nabobalis nabobalis added No Changelog Entry Needed Minor Change PR only needs one approval to merge util Issues relating to sunpy.util labels May 15, 2024
@nabobalis nabobalis merged commit daf6833 into sunpy:main May 15, 2024
24 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Minor Change PR only needs one approval to merge No Changelog Entry Needed util Issues relating to sunpy.util
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants