From 440f8f1622c7f94c439303a47a34c3f8e363b8a0 Mon Sep 17 00:00:00 2001 From: Jingru923 <47444880+Jingru923@users.noreply.github.com> Date: Wed, 31 Jul 2024 16:00:58 +0200 Subject: [PATCH] `get_value_ptr("basin.subgrid_level")` now return non-nan values (#1671) Fixes #1666 --- python/ribasim_api/tests/test_bmi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/ribasim_api/tests/test_bmi.py b/python/ribasim_api/tests/test_bmi.py index dbb4e5f5b..23aa3e772 100644 --- a/python/ribasim_api/tests/test_bmi.py +++ b/python/ribasim_api/tests/test_bmi.py @@ -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)