Skip to content

Commit

Permalink
fix plot that causes ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jingru923 committed Mar 27, 2024
1 parent ca1b811 commit f9babe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 1 addition & 10 deletions docs/python/examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1638,16 +1638,7 @@
"df_basin_wide = df_basin.pivot_table(\n",
" index=\"time\", columns=\"node_id\", values=[\"storage\", \"level\"]\n",
")\n",
"ax = df_basin_wide[\"level\"].plot()\n",
"where_allocation = (\n",
" df_basin_wide.index - df_basin_wide.index[0]\n",
").total_seconds() % model.allocation.timestep == 0\n",
"where_allocation[0] = False\n",
"df_basin_wide[where_allocation][\"level\"].plot(\n",
" style=\"o\",\n",
" ax=ax,\n",
")\n",
"ax.set_ylabel(\"level [m]\")"
"ax = df_basin_wide[\"level\"].plot(ylabel=\"level [m]\")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def doc_example_model():
"""Demonstrating model for the cascade polder project from our partner Sweco"""
"""Demonstrating model for the cascade polder project from our partner"""

model = Model(starttime="2020-01-01", endtime="2021-01-01")

Expand Down

0 comments on commit f9babe4

Please sign in to comment.