Skip to content

Deprecate "recommended_units" for representations - #6858

Merged
mhvk merged 3 commits into
astropy:masterfrom
mhvk:representation-deprecate-recommended-units
Dec 21, 2017
Merged

mhvk merged 3 commits into
astropy:masterfrom
mhvk:representation-deprecate-recommended-units

Conversation

@mhvk

@mhvk mhvk commented Nov 15, 2017

Copy link
Copy Markdown
Contributor

recommended_units of representations were used to ensure that any angles are presented in degrees in sky coordinates and frames. It is strange to have classes define an attribute that they do not use at all, and, more generally, it seems more logical to do this in frames itself (which already allow overriding units for specific representations). Still, this PR has two commits, one that replaces the actual definitions of recommended_units with a default of degree for angles, and a second that deprecates the attribute.

@mhvk mhvk added this to the v3.0.0 milestone Nov 15, 2017
@mhvk
mhvk requested a review from adrn November 15, 2017 20:39
@astropy-bot

astropy-bot Bot commented Nov 15, 2017 •

Copy link
Copy Markdown

Hi there @mhvk 👋 - 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.

@adrn adrn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry it took me so long to review. I'm fine with doing this for 3.0, and this PR looks good to me!

mhvk added 3 commits December 21, 2017 17:28
This allows on to remove the explicit setting of the recommended
unit of degrees for every representation.
Since the defaults cover all its internal use, and this should be
dealt with in the frames that actually do something with it.
@mhvk
mhvk force-pushed the representation-deprecate-recommended-units branch from d4d3e48 to 7b8cc09 Compare December 21, 2017 22:28
@mhvk mhvk added Affects-release zzz 💤 merge-when-ci-passes Do not use: We have auto-merge option now. labels Dec 21, 2017
@mhvk

mhvk commented Dec 21, 2017

Copy link
Copy Markdown
Contributor Author

Approved by @adrn and now rebased, with tests passing, so I'll merge myself...

@mhvk
mhvk merged commit 168f2cb into astropy:master Dec 21, 2017
@mhvk
mhvk deleted the representation-deprecate-recommended-units branch December 21, 2017 23:25
@mhvk mhvk mentioned this pull request Dec 22, 2017
2 of 3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coordinates Refactoring zzz 💤 merge-when-ci-passes Do not use: We have auto-merge option now.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants