From 0d204361ea9ac5a176ccf7f67c097b6426c79b7e Mon Sep 17 00:00:00 2001 From: Ziqi Li Date: Tue, 10 Jan 2023 12:37:59 +0000 Subject: [PATCH] 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) --- spglm/iwls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spglm/iwls.py b/spglm/iwls.py index 00e2018c..543e3c46 100644 --- a/spglm/iwls.py +++ b/spglm/iwls.py @@ -108,7 +108,7 @@ def iwls(y, x, family, offset, y_fix, diff = 1.0e6 if ini_betas is None: - betas = np.zeros((x.shape[1], 1), np.float) + betas = np.zeros((x.shape[1], 1)) else: betas = ini_betas