From f6a8732128f94bf5031cd59e310a2158df01bcc3 Mon Sep 17 00:00:00 2001 From: James Gaboardi Date: Tue, 24 Oct 2023 09:58:51 -0400 Subject: [PATCH] Adjust imports to updates in `libpysal` (#272) * Bump codecov/codecov-action from 3 to 4 Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v3...v4) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * fix broken imports * codecov GHA v3 * Update esda/getisord.py Co-authored-by: Martin Fleischmann --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Martin Fleischmann --- esda/getisord.py | 4 +++- esda/smoothing.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/esda/getisord.py b/esda/getisord.py index 9c7e1018..dfac2872 100644 --- a/esda/getisord.py +++ b/esda/getisord.py @@ -6,7 +6,9 @@ import warnings -from libpysal.common import np, stats +import numpy as np +from scipy import stats + from libpysal.weights.spatial_lag import lag_spatial as slag from libpysal.weights.util import fill_diagonal diff --git a/esda/smoothing.py b/esda/smoothing.py index 1cebbd9c..9707afaa 100644 --- a/esda/smoothing.py +++ b/esda/smoothing.py @@ -23,7 +23,10 @@ import warnings from functools import reduce +import numpy as np + from libpysal.cg import ( + KDTree, LineSegment, Point, Ray, @@ -34,7 +37,6 @@ get_points_dist, get_segment_point_dist, ) -from libpysal.common import KDTree, np from libpysal.common import requires as _requires from libpysal.weights.distance import Kernel from libpysal.weights.spatial_lag import lag_spatial as slag