diff --git a/tests/test_lfcoords.py b/tests/test_lfcoords.py index 6e424d5..388c3bf 100644 --- a/tests/test_lfcoords.py +++ b/tests/test_lfcoords.py @@ -3,8 +3,8 @@ import pandas as pd import pandas.testing as pdt from lisfloodutilities.lfcoords import Config -from lilisfloodutilities.lfcoords.finer_grid import coordinates_fine -from llisfloodutilities.lfcoords.coarser_grid import coordinates_coarse +from lisfloodutilities.lfcoords.finer_grid import coordinates_fine +from lisfloodutilities.lfcoords.coarser_grid import coordinates_coarse class TestCatchStats(unittest.TestCase): @@ -18,18 +18,12 @@ def test_lfcoords(self): stations_HR = coordinates_fine(cfg, save=False) test = coordinates_coarse(cfg, stations_HR, save=False) - - # maps = read_inputmaps(self.path / 'maps') - # masks = read_masks(self.path / 'masks') - # weight = read_pixarea(self.path / 'pixarea_iberian_01min.nc') - # test = catchment_statistics(maps, masks, ['mean', 'std', 'min', 'max', 'count'], weight=weight, output=None).to_pandas() - # load expected values - expected = pd.read_csv(self.path / 'expected.csv', index_col='id') + expected = pd.read_csv(self.path / 'expected.csv', index_col='ID') expected.index =expected.index.astype(test.index.dtype) # check try: - pdt.assert_frame_equal(test, expected) + pdt.assert_frame_equal(test, expected, check_dtype=False) except AssertionError as e: print(e)