Skip to content

MAINT: constants: update codata values to 2022 #21605

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

Merged
merged 2 commits into from
Sep 22, 2024

Conversation

jakobjakobson13
Copy link
Contributor

Reference issue

Closes gh-21596.

What does this implement/fix?

The codata values are updated to the 2022 data set.

Additional information

The recalculation of the exact values is still outstanding.

@lucascolley lucascolley added the maintenance Items related to regular maintenance tasks label Sep 22, 2024
@lucascolley lucascolley added this to the 1.15.0 milestone Sep 22, 2024
@lucascolley lucascolley changed the title Update codata values to 2022 MAINT: constants: update codata values to 2022 Sep 22, 2024
@lucascolley
Copy link
Member

Thanks @jakobjakobson13 , the one CI failure looks real:

=================================== FAILURES ===================================
________________________ [doctest] scipy.constants.find ________________________
2039      'Stefan-Boltzmann constant']
2040 
2041     Get the constant called 'Boltzmann constant in Hz/K':
2042 
2043     >>> physical_constants['Boltzmann constant in Hz/K']
2044     (20836619120.0, 'Hz K^-1', 0.0)
2045 
2046     Find constants with 'radius' in the key:
2047 
2048     >>> find('radius')
Expected:
    ['Bohr radius',
     'classical electron radius',
     'deuteron rms charge radius',
     'proton rms charge radius']
Got:
    ['Bohr radius', 'alpha particle rms charge radius', 'classical electron radius', 'deuteron rms charge radius', 'proton rms charge radius']

Copy link
Member

@lucascolley lucascolley left a comment

Choose a reason for hiding this comment

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

thanks again!

@lucascolley lucascolley merged commit 7255094 into scipy:main Sep 22, 2024
38 of 39 checks passed
@jakobjakobson13 jakobjakobson13 deleted the update_codata_2022 branch September 22, 2024 11:04
@jakobjakobson13
Copy link
Contributor Author

You are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.constants
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MAINT: Update constants to CODATA 2022 recommendation
2 participants