From 5cfaf74dabb384f76277fb0c4880d383070b1259 Mon Sep 17 00:00:00 2001 From: Nicolas Renaud Date: Sat, 11 Nov 2023 12:36:44 +0100 Subject: [PATCH] cast to int Cast the lval to int to avoid error on macos --- qmctorch/wavefunction/orbitals/norm_orbital.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qmctorch/wavefunction/orbitals/norm_orbital.py b/qmctorch/wavefunction/orbitals/norm_orbital.py index e8e7b734..77ee6990 100644 --- a/qmctorch/wavefunction/orbitals/norm_orbital.py +++ b/qmctorch/wavefunction/orbitals/norm_orbital.py @@ -110,7 +110,7 @@ def norm_slater_cartesian(a, b, c, n, exp): lvals = a + b + c + n + 1. - lfact = torch.as_tensor([np.math.factorial(2 * i) + lfact = torch.as_tensor([np.math.factorial(int(2 * i)) for i in lvals]).type(torch.get_default_dtype()) prefact = 4 * np.pi * lfact / ((2 * exp)**(2 * lvals + 1))