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
91 stars 82 forks source link

Ponderomotive shift fix #127

Closed dehond closed 1 year ago

dehond commented 1 year ago

Fixes #126

Due to a convention difference between the AC Stark shift as calculated from dynamical polarizabilities and the ponderomotive shift as calculated form an (effective) ponderomotive polarizability, the two need to be subtracted from one another, rather than added. When plotting the combined polarizability this is done now.

Also: fix the order of the return arguments in the docstring of getPolarizability.

nikolasibalic commented 1 year ago

Thank you @dehond for contributing to ARC! Your contribution is released now as part of version v3.2.5

P.S. I had to skip few minor versions as I had some issues with CI, and then made some mistakes when applying tags; so we went from 3.2.2 straight to 3.2.5 !