From be616033753ceddd569f10e4f4061185bad7535f Mon Sep 17 00:00:00 2001 From: Pedro Amaral Date: Fri, 20 Sep 2024 14:48:19 -0300 Subject: [PATCH] Loading data file in NSLX test --- spreg/tests/test_nslx.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spreg/tests/test_nslx.py b/spreg/tests/test_nslx.py index c25307f..3ac70b9 100644 --- a/spreg/tests/test_nslx.py +++ b/spreg/tests/test_nslx.py @@ -7,7 +7,9 @@ class TestNSLX(unittest.TestCase): def setUp(self): - dfs = gpd.read_file(libpysal.examples.get_path('Chi-SDOH.shp')) + csdoh = libpysal.examples.load_example('chicagoSDOH') + + dfs = gpd.read_file(csdoh.get_path('Chi-SDOH.shp')) self.y = dfs[['HIS_ct']] self.x = dfs[['Blk14P','Hisp14P','EP_NOHSDP']] self.coords = dfs[["COORD_X","COORD_Y"]]