Skip to content

Commit

Permalink
Fix examples notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed Apr 16, 2024
1 parent 41ae110 commit 9765dc2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/python/examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -493,10 +493,13 @@
" Node(7, Point(1.0, 0.0)),\n",
" [\n",
" discrete_control.Variable(\n",
" listen_node_id=[1], listen_node_type=\"Basin\", variable=\"level\"\n",
" listen_node_id=[1],\n",
" listen_node_type=\"Basin\",\n",
" variable=\"level\",\n",
" compound_variable_id=1,\n",
" ),\n",
" discrete_control.Condition(\n",
" greater_than=[5.0, 10.0, 15.0],\n",
" greater_than=[5.0, 10.0, 15.0], compound_variable_id=1\n",
" ),\n",
" discrete_control.Logic(\n",
" truth_state=[\"FFF\", \"U**\", \"T*F\", \"**D\", \"TTT\"],\n",
Expand Down Expand Up @@ -1183,10 +1186,12 @@
"model.discrete_control.add(\n",
" Node(11, Point(4.5, 0.25), subnetwork_id=1),\n",
" [\n",
" discrete_control.Condition(\n",
" discrete_control.Variable(\n",
" listen_node_id=[5],\n",
" listen_node_type=[\"Basin\"],\n",
" variable=[\"level\"],\n",
" ),\n",
" discrete_control.Condition(\n",
" greater_than=[0.52],\n",
" ),\n",
" discrete_control.Logic(\n",
Expand Down

0 comments on commit 9765dc2

Please sign in to comment.