make plot_network conditional

This commit is contained in:
lisazeyen 2023-08-22 11:01:00 +02:00
parent 890c80e047
commit e5673731ab

View File

@ -7,8 +7,8 @@ localrules:
copy_config,
copy_conda_env,
rule plot_network:
if config["foresight"] != "perfect":
rule plot_network:
params:
foresight=config["foresight"],
plotting=config["plotting"],
@ -34,7 +34,8 @@ rule plot_network:
script:
"../scripts/plot_network.py"
rule plot_network_perfect:
if config["foresight"] == "perfect":
rule plot_network:
params:
foresight=config["foresight"],
plotting=config["plotting"],