Skip to content

Commit

Permalink
Change inflow to profile attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
simnh committed Apr 26, 2019
1 parent 158818d commit a969c2b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/oemof/tabular/facades.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ class Reservoir(GenericStorage, Facade):
efficiency: numeric
Efficiency of the turbine converting inflow to electricity
production, default: 1
inflow: array-like
Absolute inflow of inflow into the storage
profile: array-like
Absolute inflow profile of inflow into the storage
input_parameters: dict
Dictionary to specifiy parameters on the input edge. You can use
all keys that are available for the oemof.solph.network.Flow class.
Expand Down Expand Up @@ -164,7 +164,7 @@ def __init__(self, *args, **kwargs):
"carrier",
"tech",
"bus",
"inflow",
"profile",
"efficiency",
]
}
Expand All @@ -177,7 +177,7 @@ def __init__(self, *args, **kwargs):

self.efficiency = kwargs.get("efficiency", 1)

self.inflow = kwargs.get("inflow")
self.profile = kwargs.get("profile")

self.input_parameters = kwargs.get("input_parameters", {})

Expand All @@ -202,7 +202,7 @@ def build_solph_components(self):
inflow = Source(
label=self.label + "-inflow",
outputs={
self: Flow(nominal_value=1, max=self.inflow, fixed=False)
self: Flow(nominal_value=1, max=self.profile, fixed=False)
},
)

Expand Down

0 comments on commit a969c2b

Please sign in to comment.