Skip to content

Commit

Permalink
changing test file
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrovma committed Aug 13, 2024
1 parent 071a1a0 commit ab7353f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spreg/tests/test_error_sp.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,11 @@ def test_model(self):

class TestGMMError(unittest.TestCase):
def setUp(self):
self.db = pd.read_csv(libpysal.examples.get_path('columbus.csv'))
try:
self.db = pd.read_csv(libpysal.examples.get_path('columbus.csv'))
except ValueError:
import geopandas as gpd
self.db = gpd.read_file(libpysal.examples.get_path('columbus.dbf'))
self.w = libpysal.weights.Rook.from_shapefile(libpysal.examples.get_path("columbus.shp"))
self.w.transform = 'r'

Expand Down

0 comments on commit ab7353f

Please sign in to comment.