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
86 stars 72 forks source link

Loading atom parameters doesn't work #162

Closed Petros-Kousis closed 2 months ago

Petros-Kousis commented 7 months ago

I try to load atom parameters but there seems to be the following error: File "", line 1, in atom = Caesium()

File "C:\Users\kousi\ProgrammingAnaconda\lib\site-packages\arc\alkali_atom_functions.py", line 354, in init self._readLiteratureValues()

File "C:\Users\kousi\ProgrammingAnaconda\lib\site-packages\arc\alkali_atom_functions.py", line 1985, in _readLiteratureValues if self.getEnergy(n1, l1, j1) > self.getEnergy(n2, l2, j2):

File "C:\Users\kousi\ProgrammingAnaconda\lib\site-packages\arc\alkali_atom_functions.py", line 789, in getEnergy defect = self.getQuantumDefect(n, l, j, s=s)

File "C:\Users\kousi\ProgrammingAnaconda\lib\site-packages\arc\alkali_atom_functions.py", line 827, in getQuantumDefect modifiedRRcoef = self.quantumDefect[round(floor(s) + s + j - l)][l]

TypeError: list indices must be integers or slices, not numpy.float64

nikolasibalic commented 7 months ago

Hi @Petros-Kousis

Thanks for reporting this. Can you please let me know which Python version and ARC version are you using? Also, is this a fresh installation in new Python environment, or installation that used to work but now you encointer the problem? Finally, which OS are you using?

I will look over the weekend, once I get info from you.

Many thanks, Nikola

Petros-Kousis commented 7 months ago

Hi @nikolasibalic, I am using Python 3.8.3 and the latest version of ARC. This is a fresh installation and the first time I tried to use ARC. I am using Windows 11. Thank you

nikolasibalic commented 2 months ago

Should be resolved in version 3.4.1 (see #165 for details of underlying problem that was fixed)