add seealso from module description to config documentatoin
This commit is contained in:
parent
4d3d898430
commit
3a94d4f5ef
@ -6,6 +6,8 @@ Configuration
|
|||||||
|
|
||||||
PyPSA-Eur has several configuration options which are documented in this section and are collected in a ``config.yaml`` file located in the root directory. Users can amend their own modifications and assumptions by changing the default configuration provided in the configuration file (``config.yaml``).
|
PyPSA-Eur has several configuration options which are documented in this section and are collected in a ``config.yaml`` file located in the root directory. Users can amend their own modifications and assumptions by changing the default configuration provided in the configuration file (``config.yaml``).
|
||||||
|
|
||||||
|
.. _toplevel_cf:
|
||||||
|
|
||||||
Top-level configuration
|
Top-level configuration
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
@ -50,6 +52,8 @@ An exemplary dependency graph (starting from the simplification rules) then look
|
|||||||
:widths: 25,7,22,30
|
:widths: 25,7,22,30
|
||||||
:file: configtables/scenario.csv
|
:file: configtables/scenario.csv
|
||||||
|
|
||||||
|
.. _snapshots_cf:
|
||||||
|
|
||||||
``snapshots``
|
``snapshots``
|
||||||
=============
|
=============
|
||||||
|
|
||||||
@ -64,6 +68,7 @@ Specifies the temporal range to build an energy system model for as arguments to
|
|||||||
:widths: 25,7,22,30
|
:widths: 25,7,22,30
|
||||||
:file: configtables/snapshots.csv
|
:file: configtables/snapshots.csv
|
||||||
|
|
||||||
|
.. _electricity_cf:
|
||||||
|
|
||||||
``electricity``
|
``electricity``
|
||||||
===============
|
===============
|
||||||
@ -80,6 +85,8 @@ Specifies the temporal range to build an energy system model for as arguments to
|
|||||||
.. warning::
|
.. warning::
|
||||||
Carriers in ``conventional_carriers`` must not also be in ``extendable_carriers``.
|
Carriers in ``conventional_carriers`` must not also be in ``extendable_carriers``.
|
||||||
|
|
||||||
|
.. _atlite_cf:
|
||||||
|
|
||||||
``atlite``
|
``atlite``
|
||||||
=============
|
=============
|
||||||
|
|
||||||
@ -92,6 +99,8 @@ Specifies the temporal range to build an energy system model for as arguments to
|
|||||||
:widths: 25,7,22,30
|
:widths: 25,7,22,30
|
||||||
:file: configtables/atlite.csv
|
:file: configtables/atlite.csv
|
||||||
|
|
||||||
|
.. _renewable_cf:
|
||||||
|
|
||||||
``renewable``
|
``renewable``
|
||||||
=============
|
=============
|
||||||
|
|
||||||
@ -135,6 +144,8 @@ Specifies the temporal range to build an energy system model for as arguments to
|
|||||||
:widths: 25,7,22,30
|
:widths: 25,7,22,30
|
||||||
:file: configtables/hydro.csv
|
:file: configtables/hydro.csv
|
||||||
|
|
||||||
|
.. _lines_cf:
|
||||||
|
|
||||||
``lines``
|
``lines``
|
||||||
=============
|
=============
|
||||||
|
|
||||||
@ -143,6 +154,8 @@ Specifies the temporal range to build an energy system model for as arguments to
|
|||||||
:widths: 25,7,22,30
|
:widths: 25,7,22,30
|
||||||
:file: configtables/lines.csv
|
:file: configtables/lines.csv
|
||||||
|
|
||||||
|
.. _links_cf:
|
||||||
|
|
||||||
``links``
|
``links``
|
||||||
=============
|
=============
|
||||||
|
|
||||||
@ -151,6 +164,8 @@ Specifies the temporal range to build an energy system model for as arguments to
|
|||||||
:widths: 25,7,22,30
|
:widths: 25,7,22,30
|
||||||
:file: configtables/links.csv
|
:file: configtables/links.csv
|
||||||
|
|
||||||
|
.. _transformers_cf:
|
||||||
|
|
||||||
``transformers``
|
``transformers``
|
||||||
================
|
================
|
||||||
|
|
||||||
@ -159,6 +174,8 @@ Specifies the temporal range to build an energy system model for as arguments to
|
|||||||
:widths: 25,7,22,30
|
:widths: 25,7,22,30
|
||||||
:file: configtables/transformers.csv
|
:file: configtables/transformers.csv
|
||||||
|
|
||||||
|
.. _load_cf:
|
||||||
|
|
||||||
``load``
|
``load``
|
||||||
=============
|
=============
|
||||||
|
|
||||||
@ -167,6 +184,8 @@ Specifies the temporal range to build an energy system model for as arguments to
|
|||||||
:widths: 25,7,22,30
|
:widths: 25,7,22,30
|
||||||
:file: configtables/load.csv
|
:file: configtables/load.csv
|
||||||
|
|
||||||
|
.. _costs_cf:
|
||||||
|
|
||||||
``costs``
|
``costs``
|
||||||
=============
|
=============
|
||||||
|
|
||||||
@ -180,6 +199,8 @@ Specifies the temporal range to build an energy system model for as arguments to
|
|||||||
|
|
||||||
You can also build multiple different cost databases. Make a renamed copy of ``data/costs.csv`` (e.g. ``data/costs-optimistic.csv``) and set the variable ``COSTS=data/costs-optimistic.csv`` in the ``Snakefile``.
|
You can also build multiple different cost databases. Make a renamed copy of ``data/costs.csv`` (e.g. ``data/costs-optimistic.csv``) and set the variable ``COSTS=data/costs-optimistic.csv`` in the ``Snakefile``.
|
||||||
|
|
||||||
|
.. _solving_cf:
|
||||||
|
|
||||||
``solving``
|
``solving``
|
||||||
=============
|
=============
|
||||||
|
|
||||||
@ -199,6 +220,8 @@ Specifies the temporal range to build an energy system model for as arguments to
|
|||||||
:widths: 25,7,22,30
|
:widths: 25,7,22,30
|
||||||
:file: configtables/solving-solver.csv
|
:file: configtables/solving-solver.csv
|
||||||
|
|
||||||
|
.. _plotting_cf:
|
||||||
|
|
||||||
``plotting``
|
``plotting``
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ Scenarios, Configuration and Modification
|
|||||||
It is easy to run PyPSA-Eur for multiple scenarios using the `wildcards feature <https://snakemake.readthedocs.io/en/stable/snakefiles/rules.html#wildcards>`_ of ``snakemake``. Wildcards allow to generalise a rule to produce all files that follow a `regular expression <https://en.wikipedia.org/wiki/Regular_expression>`_ pattern, which e.g. defines one particular scenario. One can think of a wildcard as a parameter that shows up in the input/output file names and thereby determines which rules to run, what data to retrieve and what files to produce. **Details are explained in** :ref:`wildcards` **and** :ref:`scenario`.
|
It is easy to run PyPSA-Eur for multiple scenarios using the `wildcards feature <https://snakemake.readthedocs.io/en/stable/snakefiles/rules.html#wildcards>`_ of ``snakemake``. Wildcards allow to generalise a rule to produce all files that follow a `regular expression <https://en.wikipedia.org/wiki/Regular_expression>`_ pattern, which e.g. defines one particular scenario. One can think of a wildcard as a parameter that shows up in the input/output file names and thereby determines which rules to run, what data to retrieve and what files to produce. **Details are explained in** :ref:`wildcards` **and** :ref:`scenario`.
|
||||||
|
|
||||||
The model also has several further configuration options collected in the ``config.yaml`` file
|
The model also has several further configuration options collected in the ``config.yaml`` file
|
||||||
located in the root directory. **All options are explained in detail in** :ref:`config`.
|
located in the root directory, which that are not part of the scenarios. **All options are explained in detail in** :ref:`config`.
|
||||||
|
|
||||||
Folder Structure
|
Folder Structure
|
||||||
================
|
================
|
||||||
|
@ -45,4 +45,3 @@ dependencies:
|
|||||||
- git+https://github.com/FRESNA/powerplantmatching.git#egg=powerplantmatching
|
- git+https://github.com/FRESNA/powerplantmatching.git#egg=powerplantmatching
|
||||||
- sphinx
|
- sphinx
|
||||||
- sphinx_rtd_theme
|
- sphinx_rtd_theme
|
||||||
- sphinxcontrib-bibtex
|
|
@ -36,6 +36,9 @@ Relevant Settings
|
|||||||
lines:
|
lines:
|
||||||
length_factor:
|
length_factor:
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at :ref:`costs_cf`, :ref:`electricity_cf`, :ref:`load_cf`, :ref:`renewable_cf`, :ref:`lines_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -29,6 +29,11 @@ Relevant Settings
|
|||||||
s_nom:
|
s_nom:
|
||||||
type:
|
type:
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`snapshots_cf`, :ref:`toplevel_cf`, :ref:`electricity_cf`, :ref:`load_cf`,
|
||||||
|
:ref:`lines_cf`, :ref:`links_cf`, :ref:`transformers_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -8,6 +8,9 @@ Relevant Settings
|
|||||||
|
|
||||||
countries:
|
countries:
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`toplevel_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
@ -15,6 +15,10 @@ Relevant Settings
|
|||||||
resource:
|
resource:
|
||||||
correction_factor:
|
correction_factor:
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`snapshots_cf`, :ref:`renewable_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -11,6 +11,10 @@ Relevant Settings
|
|||||||
cutouts:
|
cutouts:
|
||||||
{cutout}:
|
{cutout}:
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`atlite_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -14,6 +14,10 @@ Relevant Settings
|
|||||||
cutout:
|
cutout:
|
||||||
clip_min_inflow:
|
clip_min_inflow:
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`toplevel_cf`, :ref:`renewable_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -10,6 +10,10 @@ Relevant Settings
|
|||||||
{technology}:
|
{technology}:
|
||||||
cutout:
|
cutout:
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`renewable_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -10,6 +10,10 @@ Relevant Settings
|
|||||||
enable:
|
enable:
|
||||||
powerplantmatching:
|
powerplantmatching:
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`toplevel_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -35,6 +35,10 @@ Relevant settings
|
|||||||
clip_p_max_pu:
|
clip_p_max_pu:
|
||||||
resource:
|
resource:
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`snapshots_cf`, :ref:`atlite_cf`, :ref:`renewable_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -8,6 +8,10 @@ Relevant Settings
|
|||||||
|
|
||||||
countries:
|
countries:
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`toplevel_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -18,6 +18,10 @@ Relevant Settings
|
|||||||
lines:
|
lines:
|
||||||
length_factor:
|
length_factor:
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`renewable_cf`, :ref:`solving_cf`, :ref:`lines_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -15,6 +15,10 @@ Relevant Settings
|
|||||||
electricity:
|
electricity:
|
||||||
max_hours:
|
max_hours:
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`costs_cf`, :ref:`electricity_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -15,6 +15,12 @@ Description
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# Dirty work-around so that sphinx can import this module and get the
|
||||||
|
# doc-string
|
||||||
|
if __name__ != "__main__":
|
||||||
|
import sys
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
import pypsa
|
import pypsa
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
|
@ -10,6 +10,10 @@ Relevant Settings
|
|||||||
enable:
|
enable:
|
||||||
prepare_links_p_nom:
|
prepare_links_p_nom:
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`toplevel_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -18,6 +18,10 @@ Relevant Settings
|
|||||||
co2limit:
|
co2limit:
|
||||||
max_hours:
|
max_hours:
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`costs_cf`, :ref:`electricity_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -32,6 +32,11 @@ Relevant Settings
|
|||||||
solver:
|
solver:
|
||||||
name:
|
name:
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`costs_cf`, :ref:`electricity_cf`, :ref:`renewable_cf`,
|
||||||
|
:ref:`lines_cf`, :ref:`links_cf`, :ref:`solving_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -27,6 +27,10 @@ Relevant Settings
|
|||||||
(plotting:)
|
(plotting:)
|
||||||
(conv_techs:)
|
(conv_techs:)
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`electricity_cf`, :ref:`solving_cf`, :ref:`plotting_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -21,11 +21,15 @@ Relevant Settings
|
|||||||
name:
|
name:
|
||||||
(solveroptions):
|
(solveroptions):
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`solving_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
- ``networks/{network}_s{simpl}_{clusters}.nc``: confer :ref:`cluster`
|
- ``networks/{network}_s{simpl}_{clusters}.nc``: confer :ref:`cluster`
|
||||||
- ``results/networks/{network}_s{simpl}_{clusters}_l{ll}_{opts}.nc``: confer :ref:`solve `
|
- ``results/networks/{network}_s{simpl}_{clusters}_l{ll}_{opts}.nc``: confer :ref:`solve`
|
||||||
|
|
||||||
Outputs
|
Outputs
|
||||||
-------
|
-------
|
||||||
|
@ -21,6 +21,10 @@ Relevant Settings
|
|||||||
name:
|
name:
|
||||||
(solveroptions):
|
(solveroptions):
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
Documentation of the configuration file ``config.yaml`` at
|
||||||
|
:ref:`solving_cf`
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
------
|
------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user