diff --git a/Snakefile b/Snakefile index eab89679..04b43211 100644 --- a/Snakefile +++ b/Snakefile @@ -233,7 +233,7 @@ rule add_electricity: base_network = "networks/base.nc", tech_costs=COSTS, regions="resources/regions_onshore.geojson", - line_rating="resources/line_rating.nc" if config['lines'].get('line_rating', False) else None, + line_rating="resources/line_rating.nc" if config['lines'].get('line_rating', False) else "networks/base.nc", powerplants='resources/powerplants.csv', hydro_capacities='data/bundle/hydro_capacities.csv', geth_hydro_capacities='data/geth2015_hydro_capacities.csv', @@ -410,4 +410,4 @@ rule plot_p_nom_max: input: input_plot_p_nom_max output: "results/plots/elec_s{simpl}_cum_p_nom_max_{clusts}_{techs}_{country}.{ext}" log: "logs/plot_p_nom_max/elec_s{simpl}_{clusts}_{techs}_{country}_{ext}.log" - script: "scripts/plot_p_nom_max.py" \ No newline at end of file + script: "scripts/plot_p_nom_max.py" diff --git a/scripts/build_line_rating.py b/scripts/build_line_rating.py index 95424def..c44c4c13 100644 --- a/scripts/build_line_rating.py +++ b/scripts/build_line_rating.py @@ -11,8 +11,9 @@ Relevant Settings .. code:: yaml - lines_t: - s_max_pu + lines: + cutout: + line_rating: .. seealso:: @@ -26,7 +27,7 @@ Inputs Outputs ------- -- ``networks/base_with_line_rating.nc`` +- ``resources/line_rating.nc`` Description