d2hydro / lhm-ribasim

0 stars 0 forks source link

Verkrijgen werkend RIBASIM test-model #1

Closed d2hydro closed 1 year ago

d2hydro commented 1 year ago

De resultante van:

Levert, naar het lijkt, een incopatible toml-file met de laatste ribasim_cli:

Image

gijsber commented 1 year ago

Hoi @d2hydro, heb je de readme gelezen ? Beste even contact opnemen met Martijn (@visr).

visr commented 1 year ago

Oh right, the config.toml in the docs still needs to be updated, the forcing and Basin are reversed, so it is:

[Basin]
forcing = "forcing.arrow"

We'll still make more breaking changes. So frozen models will become invalid if you use the latest executable. But ribasim-python will always be in sync in the Ribasim repository.

So it probably is a good idea to install that with ribasim_testmodels: https://deltares.github.io/Ribasim/contribute/python.html#installing-python-packages

With that you can write test models to disk like this: https://github.com/Deltares/Ribasim/blob/a10e0d0e2bcb95905d53b04da75eea73f6bc18cc/python/ribasim/tests/conftest.py#L32-L39