Skip to content

Commit

Permalink
#880 fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Scottmar93 committed Mar 22, 2020
1 parent 5668b76 commit 35e1fdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pybamm/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,12 @@ def check_for_time_derivatives(self):
if isinstance(node, pybamm.VariableDot):
raise pybamm.ModelError(
"time derivative of variable"
+ "found ({}) in rhs equation {}".format(node, key)
+ " 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)
+ " found ({}) in rhs equation {}".format(node, key)
)

# Check that no variable time derivatives exist in the algebraic equations
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_models/test_base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_variables_set_get(self):
variables = {"c": "alpha", "d": "beta"}
model.variables = variables
self.assertEqual(variables, model.variables)
self.assertEqual(model.variable_names, list(variables.keys()))
self.assertEqual(model.variable_names(), list(variables.keys()))

def test_jac_set_get(self):
model = pybamm.BaseModel()
Expand Down

0 comments on commit 35e1fdb

Please sign in to comment.