From c1411ca0f47042f812e1df45930ab7c2742b4b3e Mon Sep 17 00:00:00 2001 From: Tyler Hoffman <50304432+thoffman1@users.noreply.github.com> Date: Tue, 9 Nov 2021 10:48:57 -0700 Subject: [PATCH] fix typo in uniform kernel branch Change `zi` to `zs` in the uniform kernel option, there's no variable named `zi` in scope. --- mgwr/kernels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mgwr/kernels.py b/mgwr/kernels.py index 3891699..27d4715 100755 --- a/mgwr/kernels.py +++ b/mgwr/kernels.py @@ -67,7 +67,7 @@ def _kernel_funcs(self, zs): if self.function == 'triangular': return 1 - zs elif self.function == 'uniform': - return np.ones(zi.shape) * 0.5 + return np.ones(zs.shape) * 0.5 elif self.function == 'quadratic': return (3. / 4) * (1 - zs**2) elif self.function == 'quartic':