Skip to content

Commit

Permalink
shortened lines in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lensum committed Jul 4, 2023
1 parent 2440c94 commit e4d24e3
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/oemof/solph/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ class BaseModel(po.ConcreteModel):
Parameters
----------
energysystem : EnergySystem object or list of EnergySystem objects (experimental)
Object that holds the nodes of an oemof energy system graph.
If a list is passed, a cellular structure is assumed and the
first element needs to be the upmost energy cell (structurally
containing all other cells).
energysystem : EnergySystem object or list (experimental)
Object that holds the nodes of an oemof energy system graph. If a list
is passed, the list needs to hold EnergySystem objects and a cellular
structure is assumed. In this case, the first element needs to be the
upmost energy cell (structurally containing all other cells).
constraint_groups : list (optional)
Solph looks for these groups in the given energy system and uses them
to create the constraints of the optimization problem.
Expand Down Expand Up @@ -294,11 +294,11 @@ class Model(BaseModel):
Parameters
----------
energysystem : EnergySystem object or list of EnergySystem objects (experimental)
Object that holds the nodes of an oemof energy system graph.
If a list is passed, a cellular structure is assumed and the
first element needs to be the upmost energy cell (structurally
containing all other cells).
energysystem : EnergySystem object or list (experimental)
Object that holds the nodes of an oemof energy system graph. If a list
is passed, the list needs to hold EnergySystem objects and a cellular
structure is assumed. In this case, the first element needs to be the
upmost energy cell (structurally containing all other cells).
constraint_groups : list
Solph looks for these groups in the given energy system and uses them
to create the constraints of the optimization problem.
Expand Down Expand Up @@ -375,7 +375,9 @@ def __init__(self, energysystem, discount_rate=None, **kwargs):
super().__init__(energysystem, **kwargs)

def _set_discount_rate_with_warning(self):
"""sets the discount rate to the standard value and raises a warning."""
"""
Sets the discount rate to the standard value and raises a warning.
"""
self.discount_rate = 0.02
msg = (
f"By default, a discount_rate of {self.discount_rate} "
Expand Down

0 comments on commit e4d24e3

Please sign in to comment.