Repository navigation
Add lightday to astrophysical length units - #20912
Arham-Begani wants to merge 1 commit into
Conversation
|
Hi 👋 and thank you for your contribution! 🙏 This pull request is being closed automatically - but don't worry, we may re-open it if you carefully follow these instructions. Join the astropy slack using this invite link, head over to the #new-contributor-requests channel, and introduce yourself with a post that includes:
We strongly encourage contributions from people that use astropy or actively develop related scientific Python packages. We look forward to hearing from you and growing the Astropy community! Notes for maintainersIf you know this is a genuine user and the PR is is compliance with the AI policy, you may re-open this straight away. After two successful merged pull requests, the user will be added to the allowlist and future PRs will no longer be closed automatically. This user has not made any pull requests to this repository prior to this one. In addition, here are some statistics on the user's activity on GitHub:
|
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
Adds
u.lightday, the distance light travels in vacuum in one day, alongsideu.lightyearandu.lightsecond. The definition uses Astropy’s speed-of-light constant and day unit.The tests check that one light-day converts to 86,400 light-seconds and that
lightdayappears among equivalent units. The patch also updates the units documentation and adds a changelog entry.Fixes #20901.
OpenAI Codex (GPT-6) helped implement the unit, update the tests and documentation, run verification, and draft this PR description.