Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit 563dba3

Browse files
wigner add USE_SYMMETRIES variable
1 parent f541672 commit 563dba3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/ryd_numerov/angular/utils.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
def lru_cache(maxsize: int) -> Callable[[Callable[P, R]], Callable[P, R]]: ... # type: ignore [no-redef]
2121

2222

23+
USE_SYMMETRIES = False
24+
25+
2326
def sympify_args(func: Callable[P, R]) -> Callable[P, R]:
2427
"""Check that quantum numbers are valid and convert to sympy.Integer (and half-integer)."""
2528

@@ -204,3 +207,9 @@ def minus_one_pow(n: float) -> int:
204207

205208
def check_triangular(j1: float, j2: float, j3: float) -> bool:
206209
return abs(j1 - j2) <= j3 <= j1 + j2
210+
211+
212+
if not USE_SYMMETRIES:
213+
calc_wigner_3j = _calc_wigner_3j # type: ignore[assignment]
214+
calc_wigner_6j = _calc_wigner_6j # type: ignore[assignment]
215+
calc_wigner_9j = _calc_wigner_9j # type: ignore[assignment]

0 commit comments

Comments
 (0)