From 5158858e89d519cb6df0586fa97d3cdaf1d6bd00 Mon Sep 17 00:00:00 2001 From: Puck van Gerwen <33268510+puckvg@users.noreply.github.com> Date: Wed, 26 Jul 2023 14:00:13 +0200 Subject: [PATCH] Update representations.py np.inf does not exist in newer versions of numpy, replaced with inf --- qml/representations/representations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/representations/representations.py b/qml/representations/representations.py index 9cf89c360..1fb7d2482 100644 --- a/qml/representations/representations.py +++ b/qml/representations/representations.py @@ -340,7 +340,7 @@ def get_slatm_mbtypes(nuclear_charges, pbc='000'): zsmax = np.array( list(zsmax) ) nass = [] for i in range(nm): - zsi = np.array(zs[i],np.int) + zsi = np.array(zs[i],int) nass.append( [ (zi == zsi).sum() for zi in zsmax ] ) nzmax = np.max(np.array(nass), axis=0)