Skip to content

Commit

Permalink
Revert to old tolerances for level control.
Browse files Browse the repository at this point in the history
  • Loading branch information
evetion committed Oct 9, 2024
1 parent 328efec commit a3d9703
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions docs/guide/examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"from ribasim import Allocation, Model, Node\n",
"from ribasim import Allocation, Model, Node, Solver\n",
"from ribasim.nodes import (\n",
" basin,\n",
" continuous_control,\n",
Expand Down Expand Up @@ -462,7 +462,12 @@
"metadata": {},
"outputs": [],
"source": [
"model = Model(starttime=\"2020-01-01\", endtime=\"2021-01-01\", crs=\"EPSG:4326\")"
"model = Model(\n",
" starttime=\"2020-01-01\",\n",
" endtime=\"2021-01-01\",\n",
" crs=\"EPSG:4326\",\n",
" solver=Solver(abstol=1e-6, reltol=1e-5),\n",
")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
import pandas as pd
from ribasim.config import Node
from ribasim.model import Model
from ribasim.model import Model, Solver
from ribasim.nodes import (
basin,
discrete_control,
Expand Down Expand Up @@ -388,6 +388,7 @@ def level_range_model() -> Model:
starttime="2020-01-01",
endtime="2021-01-01",
crs="EPSG:28992",
solver=Solver(abstol=1e-6, reltol=1e-5),
)

model.basin.add(
Expand Down

0 comments on commit a3d9703

Please sign in to comment.