run define_spatial in __main__

This commit is contained in:
Fabian Neumann 2021-07-09 12:51:48 +02:00
parent 4f9d2f9d5f
commit 2b204c45e4

View File

@ -2075,6 +2075,8 @@ if __name__ == "__main__":
patch_electricity_network(n)
define_spatial(pop_layout.index)
if snakemake.config["foresight"] == 'myopic':
add_lifetime_wind_solar(n, costs)