From 8e582afe317973d60679656ba6f0da6aece2af98 Mon Sep 17 00:00:00 2001 From: Germano Barcelos Date: Mon, 23 Oct 2023 22:58:53 -0300 Subject: [PATCH] pr suggestions in test_azp.py --- spopt/tests/test_azp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spopt/tests/test_azp.py b/spopt/tests/test_azp.py index 3ae3e787..77f31cf7 100644 --- a/spopt/tests/test_azp.py +++ b/spopt/tests/test_azp.py @@ -34,9 +34,9 @@ def test_azp_basic_from_w(self): weights = {} for k, v in w.neighbors.items(): arr = [] - x = MEXICO.iloc[k].geometry.centroid + x = self.mexico.iloc[k].geometry.centroid for n in v: - y = MEXICO.iloc[n].geometry.centroid + y = self.mexico.iloc[n].geometry.centroid arr.append(x.distance(y)) weights[k] = arr neighbors = w.neighbors