Skip to content

Commit

Permalink
#835 flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinsulzer committed Feb 19, 2020
1 parent a91da41 commit b2f793b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pybamm/discretisations/discretisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,9 @@ 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, pybamm.ModelError(
assert (
type(eqn.evaluate(t=0, u="shape test")) is np.ndarray
), pybamm.ModelError(
"""
initial_conditions must be numpy array after discretisation but they are
{} for variable '{}'.
Expand Down

0 comments on commit b2f793b

Please sign in to comment.