Skip to content

Commit

Permalink
cast to int
Browse files Browse the repository at this point in the history
Cast the lval to int to avoid error on macos
  • Loading branch information
NicoRenaud authored Nov 11, 2023
1 parent bfabcb0 commit 5cfaf74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qmctorch/wavefunction/orbitals/norm_orbital.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5cfaf74

Please sign in to comment.