nikolasibalic / ARC-Alkali-Rydberg-Calculator

Object-oriented Python library for computation of properties of highly-excited Rydbeg states of alkali and divalent atoms.
https://atomcalc.org
BSD 3-Clause "New" or "Revised" License
90 stars 78 forks source link

Problem with hyperfine state computations in 39 K #128

Closed quantockhills closed 1 year ago

quantockhills commented 1 year ago

I came across a potential bug, where the hyperfine coefficient Ahfs of the ground state of 39 K (n = 4, l = 0, j = 1/2) is given in units of MHz (in 'k39_hfs_data.csv', the value is '230.86' which should instead be '230860000') whereas the standard units (and the ones the other Ahfs coefficients are expressed in) are in Hz. This leads to incorrect calculations of the Zeeman energies for this state (using the breitRabi function), amongst other things.

nikolasibalic commented 1 year ago

@quantockhills Thank you for reporting this!

It's fixed and released now as v3.2.6. If you encounter any problems, please let me know!