Skip to content

Commit

Permalink
#858 fix static analysis errors
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Mar 14, 2020
1 parent 6ca684d commit f3747fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion pybamm/expression_tree/independent_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def new_copy(self):
""" See :meth:`pybamm.Symbol.new_copy()`. """
return Time()

def _base_evaluate(self, t, y=None, y_dot=None, u=None):
def _base_evaluate(self, t=None, y=None, y_dot=None, u=None):
""" See :meth:`pybamm.Symbol._base_evaluate()`. """
if t is None:
raise ValueError("t must be provided")
Expand Down
1 change: 0 additions & 1 deletion tests/unit/test_discretisations/test_discretisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ def test_process_symbol_base(self):

# variable dot
var_dot = pybamm.VariableDot("var'")
var_vec_dot = pybamm.VariableDot("var vec'", domain=["negative electrode"])
var_dot_disc = disc.process_symbol(var_dot)
self.assertIsInstance(var_dot_disc, pybamm.StateVectorDot)
self.assertEqual(var_dot_disc.y_slices[0], disc.y_slices[var.id][0])
Expand Down

0 comments on commit f3747fa

Please sign in to comment.