Skip to content

Commit

Permalink
Merge pull request #974 from PyPSA/perfect-add-config
Browse files Browse the repository at this point in the history
prepare_perfect: ensure network.meta assignment
  • Loading branch information
fneum authored Mar 19, 2024
2 parents c5597c0 + c983aa7 commit 883a850
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/prepare_perfect_foresight.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,5 +537,8 @@ def apply_time_segmentation_perfect(
# set carbon constraints
n = set_carbon_constraints(n)

# update meta
n.meta = dict(snakemake.config, **dict(wildcards=dict(snakemake.wildcards)))

# export network
n.export_to_netcdf(snakemake.output[0])

0 comments on commit 883a850

Please sign in to comment.