From 3b729e0163aa9d55097823f5cab1dad361ae5c1d Mon Sep 17 00:00:00 2001 From: Nick Harder Date: Wed, 20 Mar 2024 10:17:22 +0100 Subject: [PATCH] -fix grid utils -add tutorial 7 to the documentation -fix levels in tutorial --- assume/common/grid_utils.py | 2 +- docs/source/examples/07_interoperability_example.nblink | 1 + .../examples/07_interoperability_example.nblink.license | 3 +++ docs/source/examples_basic.rst | 1 + examples/notebooks/07_interoperability.ipynb | 6 +++--- 5 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 docs/source/examples/07_interoperability_example.nblink create mode 100644 docs/source/examples/07_interoperability_example.nblink.license diff --git a/assume/common/grid_utils.py b/assume/common/grid_utils.py index d3f3e211..5c53fdfe 100644 --- a/assume/common/grid_utils.py +++ b/assume/common/grid_utils.py @@ -40,7 +40,7 @@ def add_generators( names=generators.index, bus=generators["node"], # bus to which the generator is connected to p_nom=generators["max_power"], # Nominal capacity of the powerplant/generator - **generators, + **gen_c, ) diff --git a/docs/source/examples/07_interoperability_example.nblink b/docs/source/examples/07_interoperability_example.nblink new file mode 100644 index 00000000..d4c2779a --- /dev/null +++ b/docs/source/examples/07_interoperability_example.nblink @@ -0,0 +1 @@ +{"path": "../../../examples/notebooks/07_interoperability.ipynb"} diff --git a/docs/source/examples/07_interoperability_example.nblink.license b/docs/source/examples/07_interoperability_example.nblink.license new file mode 100644 index 00000000..a6ae0636 --- /dev/null +++ b/docs/source/examples/07_interoperability_example.nblink.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: ASSUME Developers + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/docs/source/examples_basic.rst b/docs/source/examples_basic.rst index 9d7bde42..2a547b75 100644 --- a/docs/source/examples_basic.rst +++ b/docs/source/examples_basic.rst @@ -20,3 +20,4 @@ Here you can find several tutorials on how to use ASSUME framework to get you st examples/04_reinforcement_learning_example.nblink examples/05_market_comparison.nblink examples/06_advanced_orders_example.nblink + examples/07_interoperability_example.nblink diff --git a/examples/notebooks/07_interoperability.ipynb b/examples/notebooks/07_interoperability.ipynb index 2cbc0016..3cb21e52 100644 --- a/examples/notebooks/07_interoperability.ipynb +++ b/examples/notebooks/07_interoperability.ipynb @@ -29,7 +29,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# 1. Scenario from CLI" + "## 1. Scenario from CLI" ] }, { @@ -242,7 +242,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# 3. Load AMIRIS scenario\n", + "## 3. Load AMIRIS scenario\n", "\n", "First we need to download the examples repository from amiris" ] @@ -307,7 +307,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# 4. Load PyPSA scenario" + "## 4. Load PyPSA scenario" ] }, {