Skip to content

Move original units/constants and add updated ones #1132

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rieder
Copy link
Member

@rieder rieder commented Apr 8, 2025

AMUSE units are outdated: in some cases they contradict international agreed values.
In this PR units and constants are updated to their current standards.
As a reference, the default values used in Astropy should be used.

Changes include:

  • yr is now the same as julianyr

  • au value is updated

  • solar/jupiter/earth related values updated

  • Make original AMUSE units / constants available under a new name

  • Update default AMUSE units / constants

  • Update tests

  • Test values of units against their Astropy equivalent

  • Make sure that Astropy unit names map one-to-one to AMUSE units (create aliases where needed, maybe deprecate old AMUSE names)

@rieder
Copy link
Member Author

rieder commented Apr 8, 2025

Not all units/constants have been updated yet, but the most important ones have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant