From b2ad665cc1307b805106884e1f5ea1b8d1b3970f Mon Sep 17 00:00:00 2001 From: Toni Seibold <153275395+toniseibold@users.noreply.github.com> Date: Thu, 16 Jan 2025 13:35:08 +0100 Subject: [PATCH 1/2] Bugfix prepare_sector_network.py wrongfully set comma leads to an error in `prepare_sector_network` when `config[sector][methanol][methanol_to_power][ccgt]` is activated --- scripts/prepare_sector_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 728426697..8b153a72f 100755 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -972,7 +972,7 @@ def add_methanol_to_power(n, costs, types=None): carrier="CCGT methanol", p_nom_extendable=True, capital_cost=capital_cost, - overnight_cost=costs.at["CCGT", "investment"], + overnight_cost=costs.at["CCGT", "investment"] *costs.at["CCGT", "efficiency"], marginal_cost=costs.at["CCGT", "VOM"], efficiency=costs.at["CCGT", "efficiency"], From 02ea8021b8d7916dbf17487bb7e6501c754263a1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 16 Jan 2025 12:37:26 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- scripts/prepare_sector_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 8b153a72f..628acaac9 100755 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -973,7 +973,7 @@ def add_methanol_to_power(n, costs, types=None): p_nom_extendable=True, capital_cost=capital_cost, overnight_cost=costs.at["CCGT", "investment"] - *costs.at["CCGT", "efficiency"], + * costs.at["CCGT", "efficiency"], marginal_cost=costs.at["CCGT", "VOM"], efficiency=costs.at["CCGT", "efficiency"], efficiency2=costs.at["methanolisation", "carbondioxide-input"],