From f9babe4a02d42708f3501f1537393d43279fbdfc Mon Sep 17 00:00:00 2001 From: Jingru Feng Date: Wed, 27 Mar 2024 14:16:33 +0100 Subject: [PATCH] fix plot that causes ci error --- docs/python/examples.ipynb | 11 +---------- .../ribasim_testmodels/doc_example.py | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/docs/python/examples.ipynb b/docs/python/examples.ipynb index 5e693f86d..240dcfbb0 100644 --- a/docs/python/examples.ipynb +++ b/docs/python/examples.ipynb @@ -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]\")" ] }, { diff --git a/python/ribasim_testmodels/ribasim_testmodels/doc_example.py b/python/ribasim_testmodels/ribasim_testmodels/doc_example.py index 0106f8cfb..363a173c1 100644 --- a/python/ribasim_testmodels/ribasim_testmodels/doc_example.py +++ b/python/ribasim_testmodels/ribasim_testmodels/doc_example.py @@ -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")