From a1278747a7d67354649d4212dfd58810f822783a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Sch=C3=B6nfeldt?= Date: Thu, 15 Aug 2024 20:42:01 +0200 Subject: [PATCH] Refactor some style --- src/oemof/solph/flows/_simple_flow_block.py | 4 ++-- tests/test_components/test_sink.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/oemof/solph/flows/_simple_flow_block.py b/src/oemof/solph/flows/_simple_flow_block.py index 7cf21bced..dc893592b 100644 --- a/src/oemof/solph/flows/_simple_flow_block.py +++ b/src/oemof/solph/flows/_simple_flow_block.py @@ -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( @@ -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): diff --git a/tests/test_components/test_sink.py b/tests/test_components/test_sink.py index d5683824b..fa0559650 100644 --- a/tests/test_components/test_sink.py +++ b/tests/test_components/test_sink.py @@ -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={