Skip to content

Commit

Permalink
Changelog and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio Fdez. Galván authored and Ignacio Fdez. Galván committed Aug 21, 2024
1 parent 832c0a9 commit 87c63f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Pint Changelog
- Support permille units and `‰` symbol (PR #2033, Issue #1963)
- Switch from appdirs to platformdirs.
- Fixes issues related to GenericPlainRegistry.__getattr__ type (PR #2038, Issues #1946 and #1804)
- Update constants to CODATA 2022 recommended values.


0.24.1 (2024-06-24)
Expand Down
16 changes: 9 additions & 7 deletions pint/pint_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,18 @@ def _set(key: str, value):
m_p = (ureg._units["m_p"].converter.scale, 0.00000000052e-27)
m_n = (ureg._units["m_n"].converter.scale, 0.00000000085e-27)
if args.corr:
# fmt: off
# Correlation matrix between measured constants (to be completed below)
# R_i g_e m_u m_e m_p m_n
# R_i g_e m_u m_e m_p m_n
corr = [
[ 1.00000,-0.00122, 0.00438, 0.00225, 0.00455, 0.00277], # R_i
[-0.00122, 1.00000, 0.97398, 0.97555, 0.97404, 0.59702], # g_e
[ 0.00438, 0.97398, 1.00000, 0.99839, 0.99965, 0.61279], # m_u
[ 0.00225, 0.97555, 0.99839, 1.00000, 0.99845, 0.61199], # m_e
[ 0.00455, 0.97404, 0.99965, 0.99845, 1.00000, 0.61281], # m_p
[ 0.00277, 0.59702, 0.61279, 0.61199, 0.61281, 1.00000], # m_n
[ 1.00000, -0.00122, 0.00438, 0.00225, 0.00455, 0.00277], # R_i
[-0.00122, 1.00000, 0.97398, 0.97555, 0.97404, 0.59702], # g_e
[ 0.00438, 0.97398, 1.00000, 0.99839, 0.99965, 0.61279], # m_u
[ 0.00225, 0.97555, 0.99839, 1.00000, 0.99845, 0.61199], # m_e
[ 0.00455, 0.97404, 0.99965, 0.99845, 1.00000, 0.61281], # m_p
[ 0.00277, 0.59702, 0.61279, 0.61199, 0.61281, 1.00000], # m_n
]
# fmt: on
try:
(R_i, g_e, m_u, m_e, m_p, m_n) = uncertainties.correlated_values_norm(
[R_i, g_e, m_u, m_e, m_p, m_n], corr
Expand Down

0 comments on commit 87c63f8

Please sign in to comment.