Skip to content

Commit

Permalink
Refactor some style
Browse files Browse the repository at this point in the history
  • Loading branch information
p-snft committed Aug 15, 2024
1 parent 60ce70a commit a127874
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/oemof/solph/flows/_simple_flow_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def _flow_full_load_time_max_rule(model):
rule=_flow_full_load_time_max_rule
)

def _flow_full_load_time_min_rule(model):
def _flow_full_load_time_min_rule(_):
"""Rule definition for build action of min. sum flow constraint."""
for inp, out in self.FULL_LOAD_TIME_MIN_FLOWS:
lhs = sum(
Expand All @@ -251,7 +251,7 @@ def _flow_full_load_time_min_rule(model):
rule=_flow_full_load_time_min_rule
)

def _positive_gradient_flow_rule(model):
def _positive_gradient_flow_rule(_):
"""Rule definition for positive gradient constraint."""
for inp, out in self.POSITIVE_GRADIENT_FLOWS:
for index in range(1, len(m.TIMESTEPS) + 1):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_components/test_sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_multi_input_sink():
# Use of experimental API to access nodes by label.
# Can be removed with future release of network.
with warnings.catch_warnings():
warnings.simplefilter('ignore', ExperimentalFeatureWarning)
warnings.simplefilter("ignore", ExperimentalFeatureWarning)
es.add(
solph.components.Sink(
inputs={
Expand Down

0 comments on commit a127874

Please sign in to comment.