Module 'oemof.solph.components' has no attribute 'Link'

Hey everyone,
I can’t get a link in my model to work. I am using oemof.solph 0.5.0. According to the docs it should work the way I have it implemented (oemof.solph.components — oemof.solph 0.5.1.dev3 documentation)

energysystem.add(
    solph.components.Link(
        label="link",
        inputs={bel1: solph.flows.Flow(),
                bel2: solph.flows.Flow()},
        outputs={bel1: solph.flows.Flow(),
                 bel2: solph.flows.Flow()}
    )
)

I get:

AttributeError: module 'oemof.solph.components' has no attribute 'Link'

Am I missing something?

Regards,
Marius

Hi Marius, have a look at the docs for the version you are using (Link has been experimental up until 0.5.1):

https://oemof-solph.readthedocs.io/en/v0.5.0/reference/oemof.solph.components.html#module-oemof.solph.components.experimental._link