Skip to content

PyPSA-AT application layer modifications

The mods/ package collects Python modules containing functions that update, enhance, augment, patch, or overwrite parts of the Snakemake workflow. These modifications implement Austrian-specific adaptations to the PyPSA-Eur base model, and are called from Snakemake scripts at the appropriate workflow stage.

The package is organised by workflow phase:

  • clusteringbuild phase: NUTS3 administrative clustering modifications
  • networkmodify phase: pre-network state modifications
    • common — cross-cutting helpers (resource meta attach, negative-load clipping)
    • electricity — TYNDP cross-border transmission lower bounds
    • gas — gas import, production, transit, pipelines, and storage capacities
    • h2 — H2 for industry bus topology and methane pyrolysis plasma
    • potentials — PEMMDB and KLIEN capacity potential overwrites
  • constraintssolve phase: custom linopy optimization constraints
    • co2_budget — national CO₂ budgets balanced at the co2 atmosphere bus
    • eag — EAG §4(2) national net-zero electricity production stack
    • tyndp — TYNDP NTC cross-border flows and solar utility trajectory bands