Skip to content

Commit

Permalink
#835 codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinsulzer committed Feb 19, 2020
1 parent 2afaa4b commit 0a5ce0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pybamm/discretisations/discretisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,8 +994,8 @@ def check_initial_conditions(self, model):
"""Check initial conditions are a numpy array"""
# Individual
for var, eqn in model.initial_conditions.items():
assert (
type(eqn.evaluate(t=0, u="shape test")) is np.ndarray
assert isinstance(
eqn.evaluate(t=0, u="shape test"), np.ndarray
), pybamm.ModelError(
"""
initial_conditions must be numpy array after discretisation but they are
Expand Down

0 comments on commit 0a5ce0b

Please sign in to comment.