Add remove option for solar-hsat

Add function to remove solar-hsat if the config option is 'False'
This commit is contained in:
Parisra 2024-04-25 11:37:53 +02:00 committed by GitHub
parent 692d837b14
commit be876761f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3319,7 +3319,13 @@ def remove_h2_network(n):
if "EU H2 Store" in n.stores.index: if "EU H2 Store" in n.stores.index:
n.stores.drop("EU H2 Store", inplace=True) n.stores.drop("EU H2 Store", inplace=True)
def remove_solar_tracking(n):
for tech in ['solar-hsat']:
print('removing '+tech)
n.mremove("Generator" , n.generators.index[n.generators.carrier==tech])
def limit_individual_line_extension(n, maxext): def limit_individual_line_extension(n, maxext):
logger.info(f"Limiting new HVAC and HVDC extensions to {maxext} MW") logger.info(f"Limiting new HVAC and HVDC extensions to {maxext} MW")
n.lines["s_nom_max"] = n.lines["s_nom"] + maxext n.lines["s_nom_max"] = n.lines["s_nom"] + maxext
@ -3696,6 +3702,9 @@ if __name__ == "__main__":
if options["electricity_distribution_grid"]: if options["electricity_distribution_grid"]:
insert_electricity_distribution_grid(n, costs) insert_electricity_distribution_grid(n, costs)
if not options["solar_utility_singla_axis_tracking"]:
remove_solar_tracking(n)
maybe_adjust_costs_and_potentials(n, snakemake.params["adjustments"]) maybe_adjust_costs_and_potentials(n, snakemake.params["adjustments"])
if options["gas_distribution_grid"]: if options["gas_distribution_grid"]: