Skip to content

Commit

Permalink
Disuse subclasses of oemof.network.Node
Browse files Browse the repository at this point in the history
  • Loading branch information
p-snft committed Oct 11, 2023
1 parent 860b742 commit 55f3fdc
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/oemof/solph/buses/_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"""

from oemof.network import network as on
from oemof.network import Node
from pyomo.core import BuildAction
from pyomo.core import Constraint
from pyomo.core.base.block import ScalarBlock


class Bus(on.Bus):
class Bus(Node):
"""A balance object. Every component has to be connected to buses.
The sum of all inputs of a Bus object must equal the sum of all outputs
Expand Down
4 changes: 2 additions & 2 deletions src/oemof/solph/components/_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

from warnings import warn

from oemof.network import network as on
from oemof.network import Node
from pyomo.core import BuildAction
from pyomo.core import Constraint
from pyomo.core.base.block import ScalarBlock
Expand All @@ -32,7 +32,7 @@
from oemof.solph._plumbing import sequence


class Converter(on.Transformer):
class Converter(Node):
"""A linear ConverterBlock object with n inputs and n outputs.
Node object that relates any number of inflow and outflows with
Expand Down
4 changes: 2 additions & 2 deletions src/oemof/solph/components/_generic_chp.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"""

import numpy as np
from oemof.network import network
from oemof.network import Node
from pyomo.core.base.block import ScalarBlock
from pyomo.environ import Binary
from pyomo.environ import Constraint
Expand All @@ -30,7 +30,7 @@
from oemof.solph._plumbing import sequence


class GenericCHP(network.Transformer):
class GenericCHP(Node):
r"""
Component `GenericCHP` to model combined heat and power plants.
Expand Down
4 changes: 2 additions & 2 deletions src/oemof/solph/components/_generic_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from warnings import warn

import numpy as np
from oemof.network import network
from oemof.network import Node
from oemof.tools import debugging
from oemof.tools import economics
from pyomo.core.base.block import ScalarBlock
Expand All @@ -40,7 +40,7 @@
from oemof.solph._plumbing import sequence as solph_sequence


class GenericStorage(network.Component):
class GenericStorage(Node):
r"""
Component `GenericStorage` to model with basic characteristics of storages.
Expand Down
4 changes: 2 additions & 2 deletions src/oemof/solph/components/_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"""
from warnings import warn

from oemof.network import network as on
from oemof.network import Node
from oemof.tools import debugging
from pyomo.core import Set
from pyomo.core.base.block import ScalarBlock
Expand All @@ -29,7 +29,7 @@
from oemof.solph._plumbing import sequence


class Link(on.Transformer):
class Link(Node):
"""A Link object with 2 inputs and 2 outputs.
Parameters
Expand Down
4 changes: 2 additions & 2 deletions src/oemof/solph/components/_offset_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from warnings import warn

from oemof.network import network
from oemof.network import Node
from pyomo.core import BuildAction
from pyomo.core.base.block import ScalarBlock
from pyomo.environ import Constraint
Expand All @@ -30,7 +30,7 @@
from oemof.solph._plumbing import sequence


class OffsetConverter(network.Transformer):
class OffsetConverter(Node):
"""An object with one input and one output and two coefficients to model
part load behaviour.
Expand Down
4 changes: 2 additions & 2 deletions src/oemof/solph/components/_sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"""
from warnings import warn

from oemof.network import network as on
from oemof.network import Node
from oemof.tools import debugging


class Sink(on.Sink):
class Sink(Node):
"""A component which is designed for one input flow.
Parameters
Expand Down
4 changes: 2 additions & 2 deletions src/oemof/solph/components/_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

from warnings import warn

from oemof.network import network as on
from oemof.network import Node
from oemof.tools import debugging


class Source(on.Source):
class Source(Node):
"""A component which is designed for one output flow.
Parameters
Expand Down
4 changes: 2 additions & 2 deletions src/oemof/solph/components/experimental/_generic_caes.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"""

from oemof.network import network as on
from oemof.network import Node
from pyomo.core.base.block import ScalarBlock
from pyomo.environ import Binary
from pyomo.environ import Constraint
Expand All @@ -26,7 +26,7 @@
from pyomo.environ import Var


class GenericCAES(on.Transformer):
class GenericCAES(Node):
"""
Component `GenericCAES` to model arbitrary compressed air energy storages.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"""

from oemof.network import network as on
from oemof.network import Node
from pyomo.core.base.block import ScalarBlock
from pyomo.environ import BuildAction
from pyomo.environ import Constraint
Expand All @@ -26,7 +26,7 @@
from pyomo.environ import Var


class PiecewiseLinearConverter(on.Transformer):
class PiecewiseLinearConverter(Node):
"""Component to model an energy converter with one input and one output
and an arbitrary piecewise linear conversion function.
Expand Down
4 changes: 2 additions & 2 deletions src/oemof/solph/flows/_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
from warnings import warn

import numpy as np
from oemof.network import network as on
from oemof.network import Edge
from oemof.tools import debugging

from oemof.solph._options import Investment
from oemof.solph._plumbing import sequence


class Flow(on.Edge):
class Flow(Edge):
r"""Defines a flow between two nodes.
Keyword arguments are used to set the attributes of this flow. Parameters
Expand Down

0 comments on commit 55f3fdc

Please sign in to comment.