From 9d014bec8216f444124e69f7ba31779f21ea494b Mon Sep 17 00:00:00 2001 From: Toon Verstraelen Date: Fri, 3 May 2024 08:07:53 +0200 Subject: [PATCH] Update iodata/overlap.py --- iodata/overlap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iodata/overlap.py b/iodata/overlap.py index a7f91e98..ce0df94c 100644 --- a/iodata/overlap.py +++ b/iodata/overlap.py @@ -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):