Skip to content

Commit 0d20436

Browse files
authored
Remove np.float due to deprecation error
At [this line](https://github.com/pysal/spglm/blob/7b00f42eaee795142e90aba2435d4ce34e8613fe/spglm/iwls.py#L111), Numpy 1.24 will raise an error for `np.float` which is deprecated. This causes error in downstream `mgwr`'s auto testing. [Numpy 1.24 release note](https://numpy.org/devdocs/release/1.24.0-notes.html#expired-deprecations)
1 parent 7b00f42 commit 0d20436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spglm/iwls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def iwls(y, x, family, offset, y_fix,
108108
diff = 1.0e6
109109

110110
if ini_betas is None:
111-
betas = np.zeros((x.shape[1], 1), np.float)
111+
betas = np.zeros((x.shape[1], 1))
112112
else:
113113
betas = ini_betas
114114

0 commit comments

Comments
 (0)