deprecate sunpy.physics.solar_rotate_coordinate and sunpy.physics.differential_rotate.#8039
deprecate sunpy.physics.solar_rotate_coordinate and sunpy.physics.differential_rotate.#8039ankitkhushwaha wants to merge 2 commits into
sunpy.physics.solar_rotate_coordinate and sunpy.physics.differential_rotate.#8039Conversation
5e8556b to
ae177f3
Compare
94073c9 to
59aa36b
Compare
b2ecac4 to
f8d84e5
Compare
f8d84e5 to
ecc9451
Compare
wtbarnes
left a comment
There was a problem hiding this comment.
In order to address the stated issue, this PR should also deprecate and move diff_rot to sunpy.sun.models. Additionally, the names of solar_rotate_coordinate and differential_rotate functions should be preserved when moving and deprecating.
|
Hello 👋, Thanks for your contribution to sunpy! |
Cadair
left a comment
There was a problem hiding this comment.
Hi @ankitkhushwaha Sorry it's taken me so long to review this. It looks like some changes have caused major conflicts in the moved tests.
Do you want to finish this PR off or should we close it?
| :func:`sunpy.physics.differential_rotation.solar_rotate_coordinate` has been deprecated and replaced by :func:`sunpy.coordinates.utils.solar_coordinate_rotation` and | ||
| :func:`sunpy.physics.differential_rotation.differential_rotate` has been deprecated and replaced by :func:``sunpy.map.maputils.diff_rotation``. |
There was a problem hiding this comment.
What's the motivation for the renames of these functions rather than just the moves? I'm +0 on solar_coordinate_rotation but I am -1 on diff_rotation?
|
|
||
| .. automodapi:: sunpy.coordinates.utils | ||
| :no-inheritance-diagram: | ||
| :skip: get_new_observer |
There was a problem hiding this comment.
Why have we renamed this function from _get_new_observer to get_new_observer but then chosen to not document it? Why don't we just keep it private?
hey @Cadair, give me sometime i will finish this soon. |
|
Hello 👋, Thanks for your contribution to sunpy! |
PR Description
fixes #7161
sunpy.physics.solar_rotate_coordinateandsunpy.physics.differential_rotatesolar_rotate_coordinate()tosunpy.coordinates.utilsassolar_coordinate_rotationdifferential_rotate()tosunpy.map.maputilsasdiff_rotation