From 6dbfd798b957248e660d547e5eadb36727c6a081 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Thu, 16 Mar 2023 15:54:52 +0100 Subject: [PATCH] encapsulate imports in helpers to minimise requirements for docs --- scripts/_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_helpers.py b/scripts/_helpers.py index 2e74c75d..81850e07 100644 --- a/scripts/_helpers.py +++ b/scripts/_helpers.py @@ -14,7 +14,6 @@ import pytz import yaml from pypsa.components import component_attrs, components from pypsa.descriptors import Dict -from snakemake.utils import update_config from tqdm import tqdm logger = logging.getLogger(__name__) @@ -443,6 +442,7 @@ def parse(l): def update_config_with_sector_opts(config, sector_opts): + from snakemake.utils import update_config for o in sector_opts.split("-"): if o.startswith("CF+"): l = o.split("+")[1:]