Thanks to visit codestin.com
Credit goes to github.com

Skip to content

REF: move coordinate-only helper and functions from maputils to coordinate.utils#8470

Open
Sankar-Konduri wants to merge 16 commits into
sunpy:mainfrom
Sankar-Konduri:move_coordinate_utils
Open

REF: move coordinate-only helper and functions from maputils to coordinate.utils#8470
Sankar-Konduri wants to merge 16 commits into
sunpy:mainfrom
Sankar-Konduri:move_coordinate_utils

Conversation

@Sankar-Konduri
Copy link
Copy Markdown

PR Description

This PR moves solar_angular_radius and coordinate_is_on_solar_disk from
sunpy.map.maputils to sunpy.coordinates.utils, as these functions operate
purely on coordinates and do not require a Map object.

Changes included:

  • Centralized _verify_coordinate_helioprojective helper function in coordinates.utils and
    reuses it in maputils for existing functions.
  • Removed reliance on private, version-dependent SunPy helper by explicitly
    computing the solar angular radius using geometry and Astropy units in solar_angular_radius function.
  • Preserved backward compatibility by re-exporting moved functions from
    maputils.

All relevant maputils and coordinates tests pass locally.

Closes #8445

@Sankar-Konduri
Copy link
Copy Markdown
Author

Sankar-Konduri commented Dec 21, 2025

All required CI checks are now passing, and this PR is ready for review when you have time.
For visibility: two non-required CI jobs are currently failing.

  • build_docs-gallery appears to fail due to remote-data doctests nd external API/network timeouts (e.g. Helioviewer, CDAWeb), unrelated to this refactor.
  • py313-online fails due to an upstream dependency incompatibility on Python 3.13 (aiobotocore), also unrelated to this PR.

Thanks for taking a look.

@github-actions
Copy link
Copy Markdown
Contributor

Hello 👋, Thanks for your contribution to sunpy!
I have marked this pull request as stale because there hasn't had any activity in five months. If you are still working on this, or if it's waiting on a maintainer to look at it then please let us know and we will keep it open. Please add a comment with: @sunpy/sunpy-developers to get someone's attention.
If nobody comments on this pull request for another month, it will be closed.

@github-actions github-actions Bot added the Stale The bot will close this PR after 6 months (if enabled on this repo). label May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stale The bot will close this PR after 6 months (if enabled on this repo).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move coordinate-only functions from map utils to coordinates utils

1 participant