Skip to content

Commit

Permalink
Fixed path in catchstats unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
doc78 committed Apr 30, 2024
1 parent 281d9b2 commit af33102
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_catchstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@

class TestCatchStats(unittest.TestCase):

path = Path('data/catchstats')
path = Path('tests/data/catchstats')

def test_catchstats(self):

# compute test values
maps = read_inputmaps(path / 'maps')
masks = read_masks(path / 'masks')
weight = read_pixarea(path / 'pixarea_iberian_01min.nc')
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(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
Expand Down

0 comments on commit af33102

Please sign in to comment.