def __init__(self, id, drivers, sql_id_table='DemandStock', sql_data_table='DemandStockData', primary_key='subsector_id', scenario=None, **kwargs):
     Stock.__init__(self, id, drivers, sql_id_table='DemandStock', sql_data_table='DemandStockData', primary_key='subsector_id', scenario=scenario, **kwargs)
     self.drivers = drivers
     self.in_use_drivers()
     self.projected = False
     self.efficiency_calculated = False
     self.efficiency = defaultdict(dict)
     self.levelized_costs = defaultdict(dict)
     self.annual_costs= defaultdict(dict)
예제 #2
0
 def __init__(self,
              id,
              drivers,
              sql_id_table='SupplyStock',
              sql_data_table='SupplyStockData',
              primary_key='node_id',
              **kwargs):
     Stock.__init__(self,
                    id,
                    drivers,
                    sql_id_table='SupplyStock',
                    sql_data_table='SupplyStockData',
                    primary_key='node_id',
                    **kwargs)
     StockItem.__init__(self)
예제 #3
0
 def __init__(self, id, drivers, sql_id_table='SupplyStock', sql_data_table='SupplyStockData',
              primary_key='node_id', **kwargs):
     Stock.__init__(self, id, drivers, sql_id_table='SupplyStock', sql_data_table='SupplyStockData',
                  primary_key='node_id', **kwargs)
     StockItem.__init__(self)