Model sets ================= ''' import pyomo.environ as po import pyomo.core.base.sets as poset import pandas as pd import numpy as np from grimsel.auxiliary.aux_general import silence_pd_warning from grimsel.auxiliary.aux_m_func import cols2tuplelist from grimsel import _get_logger logger = _get_logger(__name__) DICT_SETS_DOC = { r'sy': r'model time slots : df_tm_soy : t', r'ppall': r'all power plant types : df_def_plant : p', r'pp': r'dispatchable power plants with fuels : df_def_plant : p', r'st': r'storage plants : df_def_plant : p', r'pr': r'variable renewables with fixed profiles : df_def_plant : p', r'ror': r'run-of-river plants : df_def_plant : p', r'lin':
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import grimsel logger = grimsel._get_logger(__name__) logger.info(f'grimsel_config file {__file__}') try: import config_local as conf_local PATH_CSV = conf_local.PATH_CSV except Exception as e: print(e) PATH_CSV = os.path.join(grimsel.__path__[0], 'input_data') print('Using default csv path %s' % PATH_CSV) try: import config_local as conf_local BASE_DIR = conf_local.BASE_DIR except Exception as e: print(e) logger.warning('Could not import BASE_DIR path.') try: import config_local as conf_local DATABASE = conf_local.DATABASE SCHEMA = conf_local.SCHEMA