Skip to content

Commit 09eb045

Browse files
pre-commit-ci[bot]gaoflow
authored andcommitted
style: pre-commit fixes
1 parent c27d813 commit 09eb045

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

packages/pybamm/tests/unit/test_experiments/test_base_step.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@ def test_check_input_params_ignores_internal_start_time():
155155
leaves = step.value.post_order(filter=lambda n: len(n.children) == 0)
156156
names = {leaf.name for leaf in leaves if isinstance(leaf, pybamm.InputParameter)}
157157
assert names == {"start time"}
158-
assert (
159-
pybamm.experiment.step.base_step._check_input_params(step.value) is False
160-
)
158+
assert pybamm.experiment.step.base_step._check_input_params(step.value) is False
161159

162160

163161
def test_check_input_params_still_detects_user_input_parameter():
@@ -169,9 +167,7 @@ def test_check_input_params_still_detects_user_input_parameter():
169167
# Manually build a tree that contains both leaves to make the
170168
# mixing explicit.
171169
value = I_app + (pybamm.t - pybamm.InputParameter("start time"))
172-
assert (
173-
pybamm.experiment.step.base_step._check_input_params(value) is True
174-
)
170+
assert pybamm.experiment.step.base_step._check_input_params(value) is True
175171

176172

177173
def test_python_function_step_accepts_string_termination_without_operator():

0 commit comments

Comments
 (0)