Merge remote-tracking branch 'origin' into perfect

This commit is contained in:
lisazeyen 2023-04-05 10:14:50 +02:00
commit 57ef5cd259
15 changed files with 370 additions and 51 deletions

View File

@ -67,14 +67,14 @@ repos:
# Do YAML formatting (before the linter checks it for misses)
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.7.0
rev: v2.8.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, "2", --preserve-quotes]
# Format Snakemake rule / workflow files
- repo: https://github.com/snakemake/snakefmt
rev: v0.8.2
rev: v0.8.3
hooks:
- id: snakefmt

View File

@ -3,20 +3,21 @@
# SPDX-License-Identifier: CC0-1.0
cff-version: 1.1.0
message: "If you use this package, please cite the corresponding manuscript in Energy Strategy Reviews."
title: "PyPSA-Eur: An open optimisation model of the European transmission system"
message: "If you use this package, please cite it in the following way."
title: "PyPSA-Eur: An open sector-coupled optimisation model of the European energy system"
repository: https://github.com/pypsa/pypsa-eur
version: 0.7.0
version: 0.8.0
license: MIT
journal: Energy Strategy Reviews
doi: 10.1016/j.esr.2018.08.012
authors:
- family-names: Hörsch
given-names: Jonas
orcid: https://orcid.org/0000-0001-9438-767X
- family-names: Brown
given-names: Tom
orcid: https://orcid.org/0000-0001-5898-1911
- family-names: Victoria
given-names: Marta
orcid: https://orcid.org/0000-0003-1665-1281
- family-names: Zeyen
given-names: Elisabeth
orcid: https://orcid.org/0000-0002-7262-3296
- family-names: Hofmann
given-names: Fabian
orcid: https://orcid.org/0000-0002-6604-5450
@ -32,3 +33,6 @@ authors:
- family-names: Schlachtberger
given-names: David
orcid: https://orcid.org/0000-0002-8167-8213
- family-names: Hörsch
given-names: Jonas
orcid: https://orcid.org/0000-0001-9438-767X

View File

@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: CC0-1.0
version: 0.7.0
version: 0.8.0
tutorial: false
logging:
@ -684,8 +684,8 @@ solving:
threads: 4
lpmethod: 4 # barrier
solutiontype: 2 # non basic solution, ie no crossover
barrier_convergetol: 1.e-5
feasopt_tolerance: 1.e-6
barrier.convergetol: 1.e-5
feasopt.tolerance: 1.e-6
cbc-default: {} # Used in CI
glpk-default: {} # Used in CI

View File

@ -42,6 +42,7 @@ extensions = [
"sphinx.ext.mathjax",
"sphinx.ext.napoleon",
"sphinx.ext.graphviz",
"sphinxcontrib.bibtex",
#'sphinx.ext.pngmath',
#'sphinxcontrib.tikz',
#'rinoh.frontend.sphinx',
@ -51,6 +52,9 @@ extensions = [
autodoc_default_flags = ["members"]
autosummary_generate = True
bibtex_bibfiles = ["publications.bib"]
bibtex_default_style = "unsrt"
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
@ -75,9 +79,9 @@ author = "Tom Brown (KIT, TUB, FIAS), Jonas Hoersch (KIT, FIAS), Fabian Hofmann
# built documents.
#
# The short X.Y version.
version = "0.7"
version = "0.8"
# The full version, including alpha/beta/rc tags.
release = "0.7.0"
release = "0.8.0"
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

View File

@ -1,11 +1,11 @@
Trigger, Description, Definition, Status,
Trigger, Description, Definition, Status
``nH``, i.e. ``2H``-``6H``, Resample the time-resolution by averaging over every ``n`` snapshots, ``prepare_network``: `average_every_nhours() <https://github.com/PyPSA/pypsa-eur/blob/6b964540ed39d44079cdabddee8333f486d0cd63/scripts/prepare_network.py#L110>`_ and its `caller <https://github.com/PyPSA/pypsa-eur/blob/6b964540ed39d44079cdabddee8333f486d0cd63/scripts/prepare_network.py#L146>`__), In active use
``Co2L``, Add an overall absolute carbon-dioxide emissions limit configured in ``electricity: co2limit``. If a float is appended an overall emission limit relative to the emission level given in ``electricity: co2base`` is added (e.g. ``Co2L0.05`` limits emissisions to 5% of what is given in ``electricity: co2base``), ``prepare_network``: `add_co2limit() <https://github.com/PyPSA/pypsa-eur/blob/6b964540ed39d44079cdabddee8333f486d0cd63/scripts/prepare_network.py#L19>`_ and its `caller <https://github.com/PyPSA/pypsa-eur/blob/6b964540ed39d44079cdabddee8333f486d0cd63/scripts/prepare_network.py#L154>`__, In active use,
``carrier+{c|p|m}factor``,"Alter the capital cost (``c``), installable potential (``p``) or marginal costs (``m``) of a carrier by a factor. Example: ``solar+c0.5`` reduces the capital cost of solar to 50\% of original values.", ``prepare_network``, In active use,
``T``,Add land transport sector,,,
``H``,Add heating sector,,,
``B``,Add biomass,,,
``I``,Add industry sector,,,
``A``,Add agriculture sector,,,
``dist``+``n``,Add distribution grid with investment costs of ``n`` times costs in ``data/costs_{cost_year}.csv``,,,
``seq``+``n``,Sets the CO2 sequestration potential to ``n`` Mt CO2 per year,,,
``Co2L``, Add an overall absolute carbon-dioxide emissions limit configured in ``electricity: co2limit``. If a float is appended an overall emission limit relative to the emission level given in ``electricity: co2base`` is added (e.g. ``Co2L0.05`` limits emissisions to 5% of what is given in ``electricity: co2base``), ``prepare_network``: `add_co2limit() <https://github.com/PyPSA/pypsa-eur/blob/6b964540ed39d44079cdabddee8333f486d0cd63/scripts/prepare_network.py#L19>`_ and its `caller <https://github.com/PyPSA/pypsa-eur/blob/6b964540ed39d44079cdabddee8333f486d0cd63/scripts/prepare_network.py#L154>`__, In active use
``carrier+{c|p|m}factor``,"Alter the capital cost (``c``), installable potential (``p``) or marginal costs (``m``) of a carrier by a factor. Example: ``solar+c0.5`` reduces the capital cost of solar to 50\% of original values.", ``prepare_network``, In active use
``T``,Add land transport sector,,In active use
``H``,Add heating sector,,In active use
``B``,Add biomass,,In active use
``I``,Add industry sector,,In active use
``A``,Add agriculture sector,,In active use
``dist``+``n``,Add distribution grid with investment costs of ``n`` times costs in ``data/costs_{cost_year}.csv``,,In active use
``seq``+``n``,Sets the CO2 sequestration potential to ``n`` Mt CO2 per year,,In active use

Can't render this file because it has a wrong number of fields in line 2.

View File

@ -34,7 +34,9 @@ PyPSA-Eur: A Sector-Coupled Open Optimisation Model of the European Energy Syste
|
PyPSA-Eur is an open model dataset of the European energy system at the
transmission network level that covers the full ENTSO-E area.
transmission network level that covers the full ENTSO-E area. It covers demand
and supply for all energy sectors. From version v0.8.0, PyPSA-Eur includes all
the features from PyPSA-Eur-Sec, which is now deprecated.
Electricity System
==================
@ -59,13 +61,14 @@ effects for renewable power generation and their varying resource availability.
Sector-Coupled Energy System
============================
A sector-coupled extension (previously known as **PyPSA-Eur-Sec**) adds demand
and supply for the following sectors: transport, space and water heating,
biomass, energy consumption in the agriculture, industry and industrial
feedstocks, carbon management, carbon capture and usage/sequestration. This
completes the energy system and includes all greenhouse gas emitters except
waste management, agriculture, forestry and land use. The diagram below gives an
overview of the sectors and the links between them:
A sector-coupled extension (previously known as **PyPSA-Eur-Sec**, which is now
deprecated) adds demand and supply for the following sectors: transport, space
and water heating, biomass, energy consumption in the agriculture, industry and
industrial feedstocks, carbon management, carbon capture and
usage/sequestration. This completes the energy system and includes all
greenhouse gas emitters except waste management, agriculture, forestry and land
use. The diagram below gives an overview of the sectors and the links between
them:
.. image:: ../graphics/multisector_figure.png
:width: 70%
@ -93,7 +96,9 @@ About
PyPSA-Eur is designed to be imported into the open energy system modelling
framework `PyPSA <https://www.pypsa.org>`_ for which `documentation
<https://pypsa.readthedocs.io>`_ is available as well.
<https://pypsa.readthedocs.io>`_ is available as well. However, since the
workflow is modular, it should be easy to adapt the data workflow to other
modelling frameworks.
The restriction to freely available and open data encourages the open exchange
of model data developments and eases the comparison of model results. It
@ -153,20 +158,45 @@ to reading this documentation.
Citing PyPSA-Eur
================
If you use PyPSA-Eur for your research, we would appreciate it if you would cite the following paper: ::
If you use PyPSA-Eur for your research, we would appreciate it if you would cite one of the following papers:
For electricity-only studies: ::
@article{PyPSAEur,
author = "Jonas Hoersch and Fabian Hofmann and David Schlachtberger and Tom Brown",
title = "PyPSA-Eur: An open optimisation model of the European transmission system",
journal = "Energy Strategy Reviews",
volume = "22",
pages = "207 - 215",
pages = "207--215",
year = "2018",
issn = "2211-467X",
doi = "10.1016/j.esr.2018.08.012",
eprint = "1806.01613"
}
For sector-coupling studies: ::
@misc{PyPSAEurSec,
author = "Fabian Neumann and Elisabeth Zeyen and Marta Victoria and Tom Brown",
title = "The Potential Role of a Hydrogen Network in Europe",
year = "2022",
eprint = "2207.05816",
url = "https://arxiv.org/abs/2207.05816",
}
For sector-coupling studies with pathway optimisation: ::
@article{SpeedTechnological2022,
title = "Speed of technological transformations required in {Europe} to achieve different climate goals",
author = "Marta Victoria and Elisabeth Zeyen and Tom Brown",
journal = "Joule",
volume = "6",
number = "5",
pages = "1066--1086",
year = "2022",
doi = "10.1016/j.joule.2022.04.016",
eprint = "2109.09563",
}
If you want to cite a specific PyPSA-Eur version, each release of PyPSA-Eur is stored on Zenodo with a release-specific DOI:
@ -244,3 +274,4 @@ The included ``.nc`` files are PyPSA network files which can be imported with Py
licenses
limitations
contributing
publications

View File

@ -16,6 +16,9 @@
.. note::
Find the introductory slides `here <https://docs.google.com/presentation/d/e/2PACX-1vQGQZD7KIVdocRZzRVu8Uk-JC_ltEow5zjtIarhyws46IMJpaqGuux695yincmJA_i5bVEibEs7z2eo/pub?start=false&loop=true&delayms=3000>`_.
.. warning::
The video only introduces the electricity-only part of PyPSA-Eur.
Workflow
=========

261
doc/publications.bib Normal file
View File

@ -0,0 +1,261 @@
@Comment{
SPDX-FileCopyrightText: 2023 The PyPSA-Eur Authors
SPDX-License-Identifier: CC0-1.0
}
@article{PyPSAEur,
author = "Jonas Hörsch and Fabian Hofmann and David Schlachtberger and Tom Brown",
title = "PyPSA-Eur: An open optimisation model of the {European} transmission system",
journal = "Energy Strategy Reviews",
volume = "22",
pages = "207--215",
year = "2018",
doi = "10.1016/j.esr.2018.08.012",
eprint = "1806.01613"
}
@misc{PyPSAEurSec,
author = "Fabian Neumann and Elisabeth Zeyen and Marta Victoria and Tom Brown",
title = "The Potential Role of a Hydrogen Network in {Europe}",
year = "2022",
eprint = "2207.05816",
}
@article{brownSynergiesSector2018a,
title = {Synergies of sector coupling and transmission reinforcement in a cost-optimised, highly renewable {European} energy system},
volume = {160},
issn = {03605442},
doi = {10.1016/j.energy.2018.06.222},
journal = {Energy},
author = {Brown, T. and Schlachtberger, D. and Kies, A. and Schramm, S. and Greiner, M.},
year = {2018},
pages = {720--739},
}
@article{SpeedTechnological2022,
title = "Speed of technological transformations required in {Europe} to achieve different climate goals",
author = "Marta Victoria and Elisabeth Zeyen and Tom Brown",
journal = "Joule",
volume = "6",
number = "5",
pages = "1066--1086",
year = "2022",
doi = "10.1016/j.joule.2022.04.016",
eprint = "2109.09563",
}
@article{victoriaEarlyDecarbonisation2020,
title = {Early decarbonisation of the {European} energy system pays off},
volume = {11},
doi = {10.1038/s41467-020-20015-4},
number = {1},
journal = {Nature Communications},
author = {Victoria, Marta and Zhu, Kun and Brown, Tom and Andresen, Gorm B. and Greiner, Martin},
year = {2020},
pages = {6223},
}
@article{schlachtbergerCostOptimal2018,
title = {Cost optimal scenarios of a future highly renewable {European} electricity system: {Exploring} the influence of weather data, cost parameters and policy constraints},
volume = {163},
eprint = {http://arxiv.org/abs/1803.09711},
doi = {10/gfk5cj},
journal = {Energy},
author = {Schlachtberger, David P. and Brown, Tom and Schäfer, Mirko and Schramm, Stefan and Greiner, Martin},
year = {2018},
pages = {100--114},
}
@article{zeyenMitigatingHeat2021,
title = {Mitigating heat demand peaks in buildings in a highly renewable {European} energy system},
volume = {231},
url = {http://arxiv.org/abs/2012.01831},
doi = {10.1016/j.energy.2021.120784},
journal = {Energy},
author = {Zeyen, Elisabeth and Hagenmeyer, Veit and Brown, Tom},
year = {2021},
pages = {120784},
}
@misc{zeyenEndogenousLearning2022,
title = {Endogenous learning for green hydrogen in a sector-coupled energy model for {Europe}},
url = {http://arxiv.org/abs/2205.11901},
author = {Zeyen, Elisabeth and Victoria, Marta and Brown, Tom},
year = {2022},
}
@article{MILLINGER2022120016,
title = {Are biofuel mandates cost-effective? - An analysis of transport fuels and biomass usage to achieve emissions targets in the European energy system},
journal = {Applied Energy},
volume = {326},
pages = {120016},
year = {2022},
doi = {https://doi.org/10.1016/j.apenergy.2022.120016},
author = {M. Millinger and L. Reichenberg and F. Hedenus and G. Berndes and E. Zeyen and T. Brown},
}
@misc{frysztackiInverseMethods2022,
title = {Inverse methods: {How} feasible are spatially low-resolved capacity expansion modeling results when dis-aggregated at high resolution?},
url = {http://arxiv.org/abs/2209.02364},
author = {Frysztacki, Martha Maria and Hagenmeyer, Veit and Brown, Tom},
year = {2022},
}
@article{frysztackiStrongEffect2021a,
title = {The strong effect of network resolution on electricity system models with high shares of wind and solar},
volume = {291},
issn = {03062619},
doi = {10.1016/j.apenergy.2021.116726},
journal = {Applied Energy},
author = {Frysztacki, Martha Maria and Hörsch, Jonas and Hagenmeyer, Veit and Brown, Tom},
year = {2021},
pages = {116726},
}
@inproceedings{frysztackiModelingCurtailment2020a,
title = {Modeling {Curtailment} in {Germany}: {How} {Spatial} {Resolution} {Impacts} {Line} {Congestion}},
shorttitle = {Modeling {Curtailment} in {Germany}},
doi = {10.1109/EEM49802.2020.9221886},
booktitle = {2020 17th {International} {Conference} on the {European} {Energy} {Market} ({EEM})},
publisher = {IEEE},
author = {Frysztacki, Martha and Brown, Tom},
year = {2020},
pages = {1--7},
}
@article{frysztackiComparisonClustering2022,
title = {A comparison of clustering methods for the spatial reduction of renewable electricity optimisation models of {Europe}},
volume = {5},
url = {https://energyinformatics.springeropen.com/articles/10.1186/s42162-022-00187-7},
doi = {10.1186/s42162-022-00187-7},
number = {1},
journal = {Energy Informatics},
author = {Frysztacki, Martha Maria and Recht, Gereon and Brown, Tom},
year = {2022},
pages = {4},
}
@article{neumannNearoptimalFeasible2021,
title = {The near-optimal feasible space of a renewable power system model},
volume = {190},
doi = {10.1016/j.epsr.2020.106690},
journal = {Electric Power Systems Research},
author = {Neumann, Fabian and Brown, Tom},
year = {2021},
pages = {106690},
}
@article{neumannAssessmentsLinear2022,
title = {Assessments of linear power flow and transmission loss approximations in coordinated capacity expansion problems},
volume = {314},
doi = {10.1016/j.apenergy.2022.118859},
journal = {Applied Energy},
author = {Neumann, Fabian and Hagenmeyer, Veit and Brown, Tom},
year = {2022},
}
@article{neumannCostsRegional2021,
title = {Costs of regional equity and autarky in a renewable {European} power system},
volume = {35},
doi = {10.1016/j.esr.2021.100652},
journal = {Energy Strategy Reviews},
author = {Neumann, Fabian},
year = {2021},
}
@article{roseHydrogenRefueling2020,
title = {Hydrogen refueling station networks for heavy-duty vehicles in future power systems},
volume = {83},
issn = {13619209},
doi = {10.1016/j.trd.2020.102358},
journal = {Transportation Research Part D: Transport and Environment},
author = {Rose, Philipp K. and Neumann, Fabian},
year = {2020},
pages = {102358},
}
@inproceedings{neumannHeuristicsTransmission2019a,
title = {Heuristics for {Transmission} {Expansion} {Planning} in {Low}-{Carbon} {Energy} {System} {Models}},
doi = {10.1109/EEM.2019.8916411},
booktitle = {2019 16th {International} {Conference} on the {European} {Energy} {Market} ({EEM})},
publisher = {IEEE},
author = {Neumann, Fabian and Brown, Tom},
year = {2019},
pages = {1--8},
}
@misc{neumannBroadRanges2021,
title = {Broad {Ranges} of {Investment} {Configurations} for {Renewable} {Power} {Systems}, {Robust} to {Cost} {Uncertainty} and {Near}-{Optimality}},
url = {http://arxiv.org/abs/2111.14443},
author = {Neumann, Fabian and Brown, Tom},
year = {2021},
}
@misc{gazafroudiLongTermBenefits2021,
title = {Long-{Term} {Benefits} for {Renewables} {Integration} of {Network} {Boosters} for {Corrective} {Grid} {Security}},
url = {http://arxiv.org/abs/2112.06667},
author = {Gazafroudi, Amin Shokri and Zeyen, Elisabeth and Frysztacki, Martha and Neumann, Fabian and Brown, Tom},
year = {2021},
}
@article{shokrigazafroudiTopologybasedApproximations2022,
title = {Topology-based approximations for {N} - 1 contingency constraints in power transmission networks},
volume = {137},
doi = {10.1016/j.ijepes.2021.107702},
journal = {International Journal of Electrical Power \& Energy Systems},
author = {Shokri Gazafroudi, Amin and Neumann, Fabian and Brown, Tom},
year = {2022},
pages = {107702},
}
@inproceedings{horschRoleSpatial2017,
title = {The role of spatial scale in joint optimisations of generation and transmission for {European} highly renewable scenarios},
doi = {10.1109/EEM.2017.7982024},
booktitle = {2017 14th {International} {Conference} on the {European} {Energy} {Market} ({EEM})},
publisher = {IEEE},
author = {Horsch, Jonas and Brown, Tom},
year = {2017},
pages = {1--7},
}
@article{schlachtbergerBenefitsCooperation2017a,
title = {The benefits of cooperation in a highly renewable {European} electricity network},
volume = {134},
issn = {03605442},
doi = {10.1016/j.energy.2017.06.004},
journal = {Energy},
author = {Schlachtberger, D.P. and Brown, T. and Schramm, S. and Greiner, M.},
year = {2017},
pages = {469--481},
}
@misc{glaumEnhancingGerman2022,
title = {Enhancing the {German} {Transmission} {Grid} {Through} {Dynamic} {Line} {Rating}},
url = {http://arxiv.org/abs/2208.04716},
author = {Glaum, Philipp and Hofmann, Fabian},
year = {2022},
}
@misc{parzenPyPSAEarthNew2022,
title = {{PyPSA}-{Earth}. {A} {New} {Global} {Open} {Energy} {System} {Optimization} {Model} {Demonstrated} in {Africa}},
url = {http://arxiv.org/abs/2209.04663},
author = {Parzen, Maximilian and Abdel-Khalek, Hazem and Fedorova, Ekaterina and Mahmood, Matin and Frysztacki, Martha Maria and Hampp, Johannes and Franken, Lukas and Schumm, Leon and Neumann, Fabian and Poli, Davide and Kiprakis, Aristides and Fioriti, Davide},
year = {2022},
}

11
doc/publications.rst Normal file
View File

@ -0,0 +1,11 @@
..
SPDX-FileCopyrightText: 2023 The PyPSA-Eur Authors
SPDX-License-Identifier: CC-BY-4.0
##########################################
Publications
##########################################
.. bibliography::
:all:

View File

@ -10,16 +10,15 @@ Release Notes
Upcoming Release
================
* new feature or bugfix
* Bugfix: Correct typo in the CPLEX solver configuration in ``config.default.yaml``.
PyPSA-Eur 0.8.0 (17th March 2023)
PyPSA-Eur 0.8.0 (18th March 2023)
=================================
.. note::
This is the first release of PyPSA-Eur which incorporates its sector-coupled extension PyPSA-Eur-Sec.
This is the first release of PyPSA-Eur which incorporates its sector-coupled extension PyPSA-Eur-Sec (v0.7.0).
PyPSA-Eur can now directly be used for high-resolution energy system modelling with sector-coupling
including industry, transport, buildings, biomass, and detailed carbon management.
including industry, transport, buildings, biomass, and detailed carbon management. The PyPSA-Eur-Sec repository is now deprecated.
* The :mod:`solve_network` script now uses the ``linopy`` backend of PyPSA and is applied for both electricity-only and sector-coupled models. This
requires an adjustment of custom ``extra_functionality``.

View File

@ -4,6 +4,7 @@
sphinx
sphinx_book_theme
sphinxcontrib-bibtex
pypsa
vresutils>=0.3.1

View File

@ -32,7 +32,7 @@ configuration, execute
.. code:: bash
:class: full-width
snakemake -call --configfile test/config.electricity.yaml results/networks/elec_s_6_ec_lcopt_Co2L-24H.nc
snakemake -call results/test-elec/networks/elec_s_6_ec_lcopt_Co2L-24H.nc --configfile test/config.electricity.yaml
This configuration is set to download a reduced data set via the rules :mod:`retrieve_databundle`,
:mod:`retrieve_natura_raster`, :mod:`retrieve_cutout`.
@ -115,7 +115,7 @@ clustered down to 6 buses and every 24 hours aggregated to one snapshot. The com
.. code:: bash
snakemake -call --configfile test/config.electricity.yaml results/networks/elec_s_6_ec_lcopt_Co2L-24H.nc
snakemake -call results/test-elec/networks/elec_s_6_ec_lcopt_Co2L-24H.nc --configfile test/config.electricity.yaml
orders ``snakemake`` to run the rule :mod:`solve_network` that produces the solved network and stores it in ``results/networks`` with the name ``elec_s_6_ec_lcopt_Co2L-24H.nc``:
@ -276,18 +276,18 @@ You can produce any output file occurring in the ``Snakefile`` by running
For example, you can explore the evolution of the PyPSA networks by running
#. ``snakemake -call --configfile test/config.electricity.yaml resources/networks/base.nc``
#. ``snakemake -call --configfile test/config.electricity.yaml resources/networks/elec.nc``
#. ``snakemake -call --configfile test/config.electricity.yaml resources/networks/elec_s.nc``
#. ``snakemake -call --configfile test/config.electricity.yaml resources/networks/elec_s_6.nc``
#. ``snakemake -call --configfile test/config.electricity.yaml resources/networks/elec_s_6_ec_lcopt_Co2L-24H.nc``
#. ``snakemake resources/networks/base.nc -call --configfile test/config.electricity.yaml``
#. ``snakemake resources/networks/elec.nc -call --configfile test/config.electricity.yaml``
#. ``snakemake resources/networks/elec_s.nc -call --configfile test/config.electricity.yaml``
#. ``snakemake resources/networks/elec_s_6.nc -call --configfile test/config.electricity.yaml``
#. ``snakemake resources/networks/elec_s_6_ec_lcopt_Co2L-24H.nc -call --configfile test/config.electricity.yaml``
To run all combinations of wildcard values provided in the ``config.yaml`` under ``scenario:``,
you can use the collection rule ``solve_elec_networks``.
.. code:: bash
snakemake -call --configfile test/config.electricity.yaml solve_elec_networks
snakemake -call solve_elec_networks --configfile test/config.electricity.yaml
If you now feel confident and want to tackle runs with larger temporal and
spatial scope, clean-up the repository and after modifying the ``config.yaml`` file

View File

@ -528,4 +528,5 @@ configuration file.
commit to a run:
.. code:: bash
snakemake -call all -n

View File

@ -14,7 +14,6 @@ import pytz
import yaml
from pypsa.components import component_attrs, components
from pypsa.descriptors import Dict
from snakemake.utils import update_config
from tqdm import tqdm
logger = logging.getLogger(__name__)
@ -443,6 +442,8 @@ def parse(l):
def update_config_with_sector_opts(config, sector_opts):
from snakemake.utils import update_config
for o in sector_opts.split("-"):
if o.startswith("CF+"):
l = o.split("+")[1:]

View File

@ -7,6 +7,9 @@
Creates plots for optimised network topologies, including electricity, gas and
hydrogen networks, and regional generation, storage and conversion capacities
built.
This rule plots a map of the network with technology capacities at the
nodes.
"""
import logging