Skip to content

Commit 4b4573e

Browse files
committed
resolve #201, claculate from far away towards short distance (#90)
1 parent 4baf1a2 commit 4b4573e

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

arc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# this is automatically parsed by Aphinx module in Python, using napoleon addon
44
from __future__ import division, print_function, absolute_import
55

6-
__version__ = "3.10.1"
6+
__version__ = "3.10.2"
77

88
__all__ = [
99
"AlkaliAtom",

arc/calculations_atom_pairstate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3304,7 +3304,7 @@ def diagonalise(
33043304
more verbose output.
33053305
"""
33063306

3307-
self.r = np.sort(rangeR)
3307+
self.r = np.sort(rangeR)[::-1]
33083308
dimension = len(self.basisStates)
33093309

33103310
self.noOfEigenvectors = noOfEigenvectors
@@ -3420,7 +3420,7 @@ def diagonalise(
34203420
print("\n\nDiagonalizing interaction matrix...\n")
34213421

34223422
rvalIndex = 0.0
3423-
previousEigenvectors = []
3423+
previousEigenvectors = None
34243424

34253425
for rval in self.r:
34263426
if progressOutput:
@@ -3454,7 +3454,7 @@ def diagonalise(
34543454
# previous diagonalisatoin, in order to find "adiabatic"
34553455
# continuation for the respective states
34563456

3457-
if previousEigenvectors == []:
3457+
if previousEigenvectors is None:
34583458
previousEigenvectors = np.copy(egvector)
34593459
rowPicked = [False for i in range(len(ev))]
34603460
columnPicked = [False for i in range(len(ev))]

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ arc = ["data/*", "data/refractive_index_data/*", "arc_c_extensions.c"]
1818
[project]
1919
name = "ARC-Alkali-Rydberg-Calculator"
2020
description = "Alkali Rydberg Calculator"
21-
version = "3.10.1"
21+
version = "3.10.2"
2222
authors = [
2323
{name = "Nikola Sibalic", email = "nikolasibalic@physics.org"},
2424
{name = "Elizabeth J. Robertson"},
@@ -64,7 +64,7 @@ dependencies = [
6464
"lmfit>=0.9.0",
6565
"rich>=13.9.4",
6666
"h5py>=3.11.0",
67-
"asteval>=1.0.6", # avoid upstream CVE-2025-24359
67+
"asteval>=1.0.6", # avoid upstream CVE-2025-24359
6868
]
6969

7070
[project.readme]
@@ -75,7 +75,7 @@ content-type = "text/markdown"
7575
Homepage = "https://atomcalc.org/"
7676
Repository = "https://github.com/nikolasibalic/ARC-Alkali-Rydberg-Calculator"
7777
Documentation = "https://arc-alkali-rydberg-calculator.readthedocs.io/en/latest/"
78-
Download = "https://github.com/nikolasibalic/ARC-Alkali-Rydberg-Calculator/archive/refs/tags/v3.10.1.tar.gz"
78+
Download = "https://github.com/nikolasibalic/ARC-Alkali-Rydberg-Calculator/archive/refs/tags/v3.10.2.tar.gz"
7979

8080
[dependency-groups]
8181
dev = [

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)