def __init__(self, wdir, package_dir, grid, data, option): # Import Logger self.logger = logging.getLogger('Log.MarketModel.CBCOModule') self.logger.info("Initializing the CBCOModule....") self.options = option self.wdir = wdir self.package_dir = package_dir self.jdir = wdir.joinpath("data_temp/julia_files") tools.create_folder_structure(self.wdir, self.logger) # Core attributes self.grid = grid self.data = data self.grid_representation = {} # Additional attributes self.cbco_info = None self.A = None self.b = None self.nodal_injection_limits = None self.cbco_index = None self.julia_instance = None self.logger.info("CBCOModule Initialized!")
def __init__(self, wdir, options_file=None, webapp=False, logging_level=logging.INFO): self.wdir = wdir self.package_dir = Path(pomato.__path__[0]) self.logger = _logging_setup(self.wdir, webapp, logging_level) self.logger.info("Market Tool Initialized") tools.create_folder_structure(self.wdir, self.logger) # Core Attributes if not options_file: self.options = tools.default_options() else: self.initialize_options(options_file) self.data = DataManagement(self.options, self.wdir) self.grid = None self.cbco_module = None self.grid_representation = None self.market_model = None self.bokeh_plot = None
def __init__(self, wdir, bokeh_type="static"): # Impoort Logger self.logger = logging.getLogger('Log.MarketModel.BokehPlot') self.wdir = wdir self.bokeh_dir = wdir.joinpath("data_temp/bokeh_files") # Make sure all folders exist tools.create_folder_structure(self.wdir, self.logger) self.bokeh_type = bokeh_type # attributes required for dynamic bokeh plot self.bokeh_server = None self.bokeh_thread = None self._bokeh_pid = None
def __init__(self, options_file=None, webapp=False, wdir=None): self.wdir = wdir if wdir else Path.cwd() self.logger = _logging_setup(self.wdir, webapp) self.logger.info("Market Tool Initialized") tools.create_folder_structure(self.wdir, self.logger) # Core Attributes self.options = None self.initialize_options(options_file) self.data = DataManagement(self.options, self.wdir) self.grid = None self.cbco_module = None self.grid_representation = None self.market_model = None self.bokeh_plot = None
def __init__(self, wdir, options): self.logger = logging.getLogger('Log.MarketModel.JuliaInterface') self.logger.info("Initializing MarketModel...") self.options = options # Create Folders self.wdir = wdir self.data_dir = wdir.joinpath("data_temp/julia_files") self.julia_model = None # Make sure all folders exist tools.create_folder_structure(self.wdir, self.logger) self.data = None self.grid_representation = None self.model_horizon = None # attributes to signal sucessfull model run self.status = 'empty' self.result_folders = None