Skip to content

Commit

Permalink
Update iodata/overlap.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tovrstra authored May 3, 2024
1 parent 6ff6bd8 commit 9d014be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iodata/overlap.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def factorial2(n, exact=False):
"""
# Scipy 1.11.x returns an integer when n is an integer, but 1.10.x returns an array,
# so np.array(n) is passed to make sure the output is always an array.
if exact == False : #Keep when exact=False
if not exact:
out = scipy.special.factorial2(np.array(n), exact=exact)
else :
if not isinstance(n, int):
Expand Down

0 comments on commit 9d014be

Please sign in to comment.