Skip to content

Commit 09bba36

Browse files
committed
Fix NumPy compatibility issue
1 parent e11ea72 commit 09bba36

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bbp/comps/pynga/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ def NGA08(model_name, Mw, Rjb, Vs30, period, epislon=0, NGAs=None,
284284
values[:, icmp] = np.exp(values[:, icmp])
285285

286286
# outputs
287-
NGAsigmaT = np.array(values[:, 1]).astype(float)
288-
NGAtau = np.array(values[:, 2]).astype(float)
289-
NGAsigma = np.array(values[:, 3]).astype(float)
287+
NGAsigmaT = np.array(values[:, 1], dtype=float)
288+
NGAtau = np.array(values[:, 2], dtype=float)
289+
NGAsigma = np.array(values[:, 3], dtype=float)
290290
if epislon:
291291
NGAmedian = np.exp(np.log(values[:, 0]) + epislon * NGAsigmaT)
292292
else:

0 commit comments

Comments
 (0)