update mocksnakemake

This commit is contained in:
lisazeyen 2022-01-07 11:32:31 +01:00
parent 7535a0d385
commit 372473d76c

View File

@ -436,17 +436,17 @@ 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
snakemake = mock_snakemake(
'add_existing_baseyear',
simpl='',
clusters=45,
clusters="45",
lv=1.0,
opts='',
sector_opts='Co2L0-168H-T-H-B-I-solar+p3-dist1',
sector_opts='168H-T-H-B-I-A-solar+p3-dist1',
planning_horizons=2020,
)