encapsulate imports in helpers to minimise requirements for docs
This commit is contained in:
parent
21a60d7859
commit
6dbfd798b9
@ -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:]
|
||||
|
Loading…
Reference in New Issue
Block a user