pypsa-eur/scripts
Chiara Anselmetti ed4fdc9150
Keep links to store components when using ATK wildcard (#214)
* Update prepare_network.py

The new ATK wildcard removes all lines + links without further distinction; however, since storage options are now modeled as store components, the links to and from the the storage units for (dis)charge are eliminated as well. Thus, the storage options drop out of the optimisation. 
Especially when only allowing renewables as generation sources, optimisation may become infeasible for a high temporal resolution (capacity factors = 0 for certain hours; no further options to serve the load). 
This issue does not arise with the ATKc wildcard, since bus0 and bus1 of the (dis)charge links share the same country code.

The proposed change is a very quick fix in the enforce_autarky function, solely removing DC links.

* Update scripts/prepare_network.py

Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>

* Update prepare_network.py

Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
2021-01-11 10:27:27 +01:00
..
_helpers.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
add_electricity.py Release v0.3 (#213) 2020-12-05 17:54:50 +01:00
add_extra_components.py Release v0.3 (#213) 2020-12-05 17:54:50 +01:00
base_network.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
build_bus_regions.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
build_country_flh.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
build_cutout.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
build_hydro_profile.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
build_load_data.py Release v0.3 (#213) 2020-12-05 17:54:50 +01:00
build_natura_raster.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
build_powerplants.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
build_renewable_profiles.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
build_shapes.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
cluster_network.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
make_summary.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
plot_network.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
plot_p_nom_max.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
plot_summary.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
prepare_links_p_nom.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
prepare_network.py Keep links to store components when using ATK wildcard (#214) 2021-01-11 10:27:27 +01:00
retrieve_cutout.py add REUSE.software license information (#160) 2020-05-29 09:50:55 +02:00
retrieve_databundle.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
retrieve_natura_raster.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
simplify_network.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00
solve_network.py Release v0.3 (#213) 2020-12-05 17:54:50 +01:00
solve_operations_network.py some refactoring and code cleaning (#190) 2020-12-03 19:50:53 +01:00