Skip to content

Commit

Permalink
get_value_ptr("basin.subgrid_level") now return non-nan values (#1671)
Browse files Browse the repository at this point in the history
Fixes #1666
  • Loading branch information
Jingru923 authored Jul 31, 2024
1 parent 1a8adfd commit 440f8f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/ribasim_api/tests/test_bmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ def test_get_value_ptr_subgrid(libribasim, two_basin, tmp_path):
libribasim.update_until(86400.0)

# Subgrid level
libribasim.update_subgrid_level()
actual_subgrid_level = libribasim.get_value_ptr("basin.subgrid_level")
expected_subgrid_level = np.array([np.nan, np.nan])
expected_subgrid_level = np.array([2.17, 0.006142])
assert_array_almost_equal(actual_subgrid_level, expected_subgrid_level)


Expand Down

0 comments on commit 440f8f1

Please sign in to comment.