Skip to content

Commit

Permalink
#880 fixed flake8 in base_model
Browse files Browse the repository at this point in the history
  • Loading branch information
Scottmar93 committed Mar 22, 2020
1 parent 34c46d5 commit 5668b76
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pybamm/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,15 +398,13 @@ def check_for_time_derivatives(self):
for node in eq.pre_order():
if isinstance(node, pybamm.VariableDot):
raise pybamm.ModelError(
"time derivative of variable found ({}) in rhs equation {}".format(
node, key
)
"time derivative of variable"
+ "found ({}) in rhs equation {}".format(node, key)
)
if isinstance(node, pybamm.StateVectorDot):
raise pybamm.ModelError(
"time derivative of state vector found ({}) in rhs equation {}".format(
node, key
)
"time derivative of state vector"
+ "found ({}) in rhs equation {}".format(node, key)
)

# Check that no variable time derivatives exist in the algebraic equations
Expand Down

0 comments on commit 5668b76

Please sign in to comment.