build_transmission_projects: set s_max_pu to the value according to config (#1323)
This commit is contained in:
parent
24e0ddd5a6
commit
d4bad07cf4
@ -386,6 +386,7 @@ rule build_transmission_projects:
|
||||
params:
|
||||
transmission_projects=config_provider("transmission_projects"),
|
||||
line_factor=config_provider("lines", "length_factor"),
|
||||
s_max_pu=config_provider("lines", "s_max_pu"),
|
||||
input:
|
||||
base_network=resources("networks/base.nc"),
|
||||
offshore_shapes=resources("offshore_shapes.geojson"),
|
||||
|
@ -482,6 +482,7 @@ if __name__ == "__main__":
|
||||
set_scenario_config(snakemake)
|
||||
|
||||
line_factor = snakemake.params.line_factor
|
||||
s_max_pu = snakemake.params.s_max_pu
|
||||
|
||||
n = pypsa.Network(snakemake.input.base_network)
|
||||
|
||||
@ -543,6 +544,8 @@ if __name__ == "__main__":
|
||||
* new_lines_df["v_nom"]
|
||||
* new_lines_df["num_parallel"]
|
||||
).round(2)
|
||||
# set s_max_pu
|
||||
new_lines_df["s_max_pu"] = s_max_pu
|
||||
if not new_links_df.empty:
|
||||
# Add carrier types of lines and links
|
||||
new_links_df["carrier"] = "DC"
|
||||
|
Loading…
Reference in New Issue
Block a user