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

Change the output of sample_at_coords() to have units #6882

Closed
wants to merge 1 commit into from

Conversation

ayshih
Copy link
Member

@ayshih ayshih commented Mar 28, 2023

For some reason, sunpy.map.maputils.sample_at_coords() doesn't return a Quantity when sampling pixel values. This PR fixes that oversight, although this is an API change that could break code in the wild without any practical way to have a deprecation period.

@ayshih ayshih added the map Affects the map submodule label Mar 28, 2023
@ayshih ayshih added the No Backport A PR that isn't to be backported to any release branch. (To be used as a flag to other maintainers) label Mar 28, 2023
@ayshih ayshih marked this pull request as ready for review March 28, 2023 04:53
@ayshih ayshih requested a review from a team as a code owner March 28, 2023 04:53
Copy link
Member

@wtbarnes wtbarnes left a comment

Choose a reason for hiding this comment

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

I'm ok with this being a breaking change, especially given that Quantity objects behave like numpy arrays in most scenarios.

@nabobalis
Copy link
Contributor

nabobalis commented Apr 4, 2023

Needs a rebase but looks good to me. Happy to break due to the reason Will has given.

@ayshih
Copy link
Member Author

ayshih commented Apr 4, 2023

Oh, whoops, I figured this would get merged before #6840, so I didn't mention in #6840 that it had been rebased on top of this PR. So, the changes here, including the changelog entry, are already in with the merging of #6840. I don't think it makes sense to rebase this PR, which would wipe out the single commit here and make it more difficult for future readers to understand. I'll just close this PR, and we'll live with the weirdness of having our changelog point to a PR that wasn't directly merged.

@ayshih ayshih closed this Apr 4, 2023
@ayshih ayshih deleted the sample_unit branch November 3, 2023 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
map Affects the map submodule No Backport A PR that isn't to be backported to any release branch. (To be used as a flag to other maintainers)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants