Skip to content

Commit 1e71721

Browse files
committed
Minor: improved bohr_to_angstrom in constants
1 parent d96a9d2 commit 1e71721

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

arc/constants.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cdef double pi, Na, kB, R, h, hbar, c, e, m_e, m_p, m_n, amu, a0, E_h, F, E_h_kJmol, bohr_to_angstrom
1+
cdef double pi, Na, kB, R, h, hbar, c, e, m_e, m_p, m_n, amu, a0, bohr_to_angstrom, E_h, F, E_h_kJmol

arc/constants.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
#: The Bohr radius :math:`a_0` in :math:`\mathrm{m}`
4343
a0 = 5.2917721092e-11
44+
bohr_to_angstrom = a0 * 1e10
4445

4546
#: The atomic mass unit in :math:`\mathrm{kg}`
4647
amu = 1.660538921e-27
@@ -78,8 +79,6 @@
7879
#: Vacuum permittivity
7980
epsilon_0 = 8.8541878128
8081

81-
bohr_to_angstrom = 0.529177
82-
8382
# Cython does not automatically place module-level variables into the module
8483
# symbol table when in compiled mode, so we must do this manually so that we
8584
# can use the constants from both Cython and regular Python code

0 commit comments

Comments
 (0)