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
Fix confusing argument name in realize_frame #7923
Conversation
Hi there @adrn 👋 - thanks for the pull request! I'm just a friendly 🤖 that checks for issues related to the changelog and making sure that this pull request is milestoned and labeled correctly. This is mainly intended for the maintainers, so if you are not a maintainer you can ignore this, and a maintainer will let you know if any action is required on your part 😃. Everything looks good from my point of view! 👍 If there are any issues with this message, please report them here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a changelog entry noting the API change.
The 3.0 change was also an API change in the name, right? That is previously it was representation
? Maybe we should just change it back to representation
, but add a keyword representation_type
that raises a deprecation warning for 1 (and only one) major version?
ff734dd
to
11e3309
Compare
In the interest of not over-engineering (since no one complained when this changed names in the last version) and creating more work for the future (deprecation), I opt for just switching the name back to the correct / pre-v3.0 name. I added an API change entry to the changelog! |
OK, that's fair. For this case it's pretty straightforward since it's a single-parameter method so it's likely that no one uses the keyword version anyway. That said, as our canary in the coordinates coal mine... @Cadair, as far as you know you never have |
I suggested |
Thanks for referencing #7784 - hadn't connected that with this mentally, but you're right it's the same thing, @Juanlu001 ! I see your point re: See my #7784 (comment) about this, though. If we agree on that as the thing to do is change the name to |
11e3309
to
4d3d86c
Compare
This looks good to me. The SunPy tests all pass etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test failure in the docs looks real, I think because of the dangling *
here?
Co-Authored-By: adrn <adrianmpw@gmail.com>
Fixed! |
As a result of a large copy-pasta for v3.0 (or 2.0?), I renamed a bunch of things
representation
->representation_type
. Well, this one was changed by accident:realize_frame
expects a representation with data, not a representation type. I've changed the name now to make this more clear...but this is kind of an API change, even though it's fixing an unintentional previous API change.