Skip to content

Commit

Permalink
Move renpass.options.typemap to facades.TYPEMAP
Browse files Browse the repository at this point in the history
  • Loading branch information
gnn committed Dec 11, 2018
1 parent d9af646 commit d7e06c6
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions src/oemof/tabular/facades.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
SPDX-License-Identifier: BSD-3-Clause
"""
from oemof.network import Node
from oemof.solph import Flow, Investment, Sink, Source, Transformer
from oemof.solph import Bus, Flow, Investment, Sink, Source, Transformer
from oemof.solph.components import ExtractionTurbineCHP, GenericStorage
from oemof.solph.custom import Link
from oemof.solph.custom import ElectricalBus, ElectricalLine, Link
from oemof.solph.plumbing import sequence


Expand Down Expand Up @@ -760,3 +760,23 @@ class Generator(Dispatchable):
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)


TYPEMAP = {
'backpressure': BackpressureTurbine,
'bus': Bus,
'conversion': Conversion,
'dispatchable': Dispatchable,
'electrical bus': ElectricalBus,
'electrical line': ElectricalLine,
'excess': Excess,
'extraction': ExtractionTurbine,
'generator': Generator,
'link': Link,
'load': Load,
'reservoir': Reservoir,
'shortage': Shortage,
'storage': Storage,
'volatile': Volatile,
}

0 comments on commit d7e06c6

Please sign in to comment.