update mocksnakemake

This commit is contained in:
lisazeyen 2022-01-07 12:45:33 +01:00
parent c9ce9190a7
commit 030bf96d32
2 changed files with 4 additions and 3 deletions

View File

@ -83,9 +83,10 @@ if __name__ == "__main__":
snakemake = mock_snakemake(
'add_brownfield',
simpl='',
clusters=48,
clusters="45",
opts="",
lv=1.0,
sector_opts='Co2L0-168H-T-H-B-I-solar3-dist1',
sector_opts='Co2L0-168H-T-H-B-I-A-solar3-dist1',
planning_horizons=2030,
)

View File

@ -450,7 +450,7 @@ def add_heating_capacities_installed_before_baseyear(n, baseyear, grouping_years
threshold = snakemake.config['existing_capacities']['threshold_capacity']
n.mremove("Link", [index for index in n.links.index.to_list() if str(grouping_year) in index and n.links.p_nom[index] < threshold])
#%%
if __name__ == "__main__":
if 'snakemake' not in globals():
from helper import mock_snakemake