Skip to content

Commit

Permalink
hotfix(sfrmaker/test/test_flows.py): fix assertion by sorting results
Browse files Browse the repository at this point in the history
  • Loading branch information
aleaf committed Mar 18, 2024
1 parent 56dac8e commit a617a47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sfrmaker/test/test_flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def test_add_to_perioddata(shellmound_sfrdata):
period_column='per',
data_column='Q_avg',
one_inflow_per_path=False)
assert np.allclose(sfrd.period_data['inflow'].values, [100., 10., 200., 20.])
assert np.allclose(sfrd.period_data['inflow'].sort_index(level='rno').values,
[100., 10., 200., 20.])
assert np.allclose(sfrd.period_data.index.levels[1], [354, 401])


Expand Down

0 comments on commit a617a47

Please sign in to comment.