Skip to content

Commit

Permalink
wip: single schema structure
Browse files Browse the repository at this point in the history
  • Loading branch information
lkstrp committed Feb 21, 2025
1 parent 1bf0f80 commit 0c7a363
Show file tree
Hide file tree
Showing 22 changed files with 1,081 additions and 344 deletions.
7 changes: 4 additions & 3 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from pathlib import Path
import yaml
from os.path import normpath, exists, join
from shutil import copyfile, move, rmtree
from snakemake.utils import min_version, validate
from snakemake.utils import min_version
from scripts._helpers import (
path_provider,
copy_default_files,
Expand All @@ -15,16 +15,17 @@ from scripts._helpers import (
get_shadow,
)

min_version("8.11")
from scripts.lib.validation import validate_config

min_version("8.11")
copy_default_files(workflow)


configfile: "config/config.default.yaml"
configfile: "config/config.yaml"


validate(config, "config/schemas/general.yaml")
validate_config(config, "config/config.schema.yaml")


run = config["run"]
Expand Down
7 changes: 6 additions & 1 deletion config/config.default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ private:
remote:
ssh: ""
path: ""
test_deprecation: ""

# docs in https://pypsa-eur.readthedocs.io/en/latest/configuration.html#run
run:
Expand Down Expand Up @@ -172,6 +171,7 @@ renewable:
natura: true
excluder_resolution: 100
clip_p_max_pu: 1.e-2

offwind-ac:
cutout: europe-2013-sarah3-era5
resource:
Expand All @@ -190,6 +190,7 @@ renewable:
excluder_resolution: 200
clip_p_max_pu: 1.e-2
landfall_length: 10

offwind-dc:
cutout: europe-2013-sarah3-era5
resource:
Expand All @@ -208,6 +209,7 @@ renewable:
excluder_resolution: 200
clip_p_max_pu: 1.e-2
landfall_length: 10

offwind-float:
cutout: europe-2013-sarah3-era5
resource:
Expand All @@ -229,6 +231,7 @@ renewable:
max_depth: 1000
clip_p_max_pu: 1.e-2
landfall_length: 10

solar:
cutout: europe-2013-sarah3-era5
resource:
Expand All @@ -244,6 +247,7 @@ renewable:
natura: true
excluder_resolution: 100
clip_p_max_pu: 1.e-2

solar-hsat:
cutout: europe-2013-sarah3-era5
resource:
Expand All @@ -259,6 +263,7 @@ renewable:
natura: true
excluder_resolution: 100
clip_p_max_pu: 1.e-2

hydro:
cutout: europe-2013-sarah3-era5
carriers: [ror, PHS, hydro]
Expand Down
Loading

0 comments on commit 0c7a363

Please sign in to comment.