update config location and wildcards for debugging

This commit is contained in:
Philipp Glaum 2022-01-25 15:22:58 +01:00
parent 815f9824e9
commit 8421fb13f1
5 changed files with 7 additions and 7 deletions

View File

@ -8,10 +8,10 @@ from shutil import copyfile
from snakemake.remote.HTTP import RemoteProvider as HTTPRemoteProvider
HTTP = HTTPRemoteProvider()
if not exists("config.yaml"):
if not exists("../config.yaml"):
copyfile("config.default.yaml", "config.yaml")
configfile: "config.yaml"
configfile: "../config.yaml"
COSTS="data/costs.csv"
ATLITE_NPROCESSES = config['atlite'].get('nprocesses', 4)

View File

@ -103,7 +103,7 @@ logger = logging.getLogger(__name__)
if __name__ == "__main__":
if 'snakemake' not in globals():
from _helpers import mock_snakemake
snakemake = mock_snakemake('build_cutout', cutout='europe-2013-era5')
snakemake = mock_snakemake('build_cutout', cutout='europe-2013-era5-tutorial')
configure_logging(snakemake)
cutout_params = snakemake.config['atlite']['cutouts'][snakemake.wildcards.cutout]

View File

@ -328,7 +328,7 @@ def plot_busmap_for_n_clusters(n, n_clusters, fn=None):
if __name__ == "__main__":
if 'snakemake' not in globals():
from _helpers import mock_snakemake
snakemake = mock_snakemake('cluster_network', network='elec', simpl='', clusters='5')
snakemake = mock_snakemake('cluster_network', network='elec', simpl='', clusters='40')
configure_logging(snakemake)
n = pypsa.Network(snakemake.input.network)

View File

@ -270,7 +270,7 @@ if __name__ == "__main__":
if 'snakemake' not in globals():
from _helpers import mock_snakemake
snakemake = mock_snakemake('solve_network', network='elec', simpl='',
clusters='6', ll='copt', opts='Co2L-24H')
clusters='40', ll='v1.0', opts='Co2L-4H')
configure_logging(snakemake)
tmpdir = snakemake.config['solving'].get('tmpdir')

View File

@ -97,7 +97,7 @@ if __name__ == "__main__":
if 'snakemake' not in globals():
from _helpers import mock_snakemake
snakemake = mock_snakemake('solve_operations_network', network='elec',
simpl='', clusters='5', ll='copt', opts='Co2L-BAU-24H')
simpl='', clusters='40', ll='v1.0', opts='Co2L-4H')
configure_logging(snakemake)
tmpdir = snakemake.config['solving'].get('tmpdir')