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

Fixed bug that prevents RotatedSunFrame instances from being pickled #6342

Merged
merged 1 commit into from Nov 4, 2022

Conversation

EdBehn
Copy link
Contributor

@EdBehn EdBehn commented Jul 26, 2022

Fixes #6279

This fix is based on
astropy/astropy#13305

This fix makes it so that RotatedSunFrame objects
can be pickled and unpickled.

@EdBehn EdBehn requested a review from a team as a code owner July 26, 2022 13:41
@nabobalis nabobalis added BugFix coordinates Affects the coordinates submodule labels Jul 26, 2022
@nabobalis
Copy link
Contributor

nabobalis commented Jul 26, 2022

Hi @EdBehn, thanks for the PR!

A few comments would be that, like the astropy pull request will want a unit test and a bugfix changelog entry (they go here https://github.com/sunpy/sunpy/tree/main/changelog).

@ayshih ayshih changed the title Addresses https://github.com/sunpy/sunpy/issues/6279 Fixed bug that prevents RotatedSunFrame instances from being pickled Jul 27, 2022
@ayshih
Copy link
Member

ayshih commented Jul 27, 2022

I'm converting this PR to draft since it can't be reviewed without a unit test

@ayshih ayshih marked this pull request as draft July 27, 2022 13:47
@dstansby
Copy link
Member

dstansby commented Oct 5, 2022

Hi @EdBehn thanks for opening this PR! Do you think you'll be able to add a unit test to this? Let us know if you need any help! If you don't have time to do that, let us know and someone else can finish off the PR.

@EdBehn
Copy link
Contributor Author

EdBehn commented Oct 5, 2022

@dstansby I would need some help writing a unit test as I've never done it before.

@ayshih
Copy link
Member

ayshih commented Oct 5, 2022

The unit test I suggested here should work fine. It needs to be added to the bottom of test_metaframes.py and then its operation verified.

@ayshih ayshih marked this pull request as ready for review November 4, 2022 01:33
Addressed sunpy#6279

This fix is based on
astropy/astropy#13305

This fix makes it so that RotatedSunFrame objects
can be pickled and unpickled.

Added unit test and changelog entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coordinates Affects the coordinates submodule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug prevents RotatedSunFrame instances from being pickled
4 participants