switch_model/wecc/utilities.py
def load_config():
    """Read the config.yaml configuration file"""
    if not os.path.isfile("config.yaml"):
        raise Exception("config.yaml does not exist. Try running 'switch new scenario' to auto-create it.")
    with open("config.yaml") as f:
        return yaml.load(f, Loader=yaml.FullLoader)
Read the config.yaml configuration file
Read the config.yaml configuration file
Read the config . yaml configuration file
def load_config():
    if not os.path.isfile("config.yaml"):
        raise Exception("config.yaml does not exist. Try running 'switch new scenario' to auto-create it.")
    with open("config.yaml") as f:
        return yaml.load(f, Loader=yaml.FullLoader)
def load_config ( ) : if not os . path . isfile ( "config.yaml" ) : raise Exception ( "config.yaml does not exist. Try running 'switch new scenario' to auto-create it." ) with open ( "config.yaml" ) as f : return yaml . load ( f , Loader = yaml . FullLoader )
Read the config.yaml configuration file
Read the config . yaml configuration file
"""Read the config.yaml configuration file"""