Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
brosaplanella committed Mar 10, 2021
1 parent b28604f commit 38a22fd
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions tests/integration/test_models/standard_output_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,18 +290,10 @@ def test_concentration_increase_decrease(self):
neg_end_vs_start = self.c_s_n_rav(t[-1], x_n) - self.c_s_n_rav(t[0], x_n)
pos_end_vs_start = self.c_s_p_rav(t[-1], x_p) - self.c_s_p_rav(t[0], x_p)
else:
neg_diff = self.c_s_n(t[1:], x_n, r_n) - self.c_s_n(
t[:-1], x_n, r_n
)
pos_diff = self.c_s_p(t[1:], x_p, r_p) - self.c_s_p(
t[:-1], x_p, r_p
)
neg_end_vs_start = self.c_s_n(t[-1], x_n, r_n) - self.c_s_n(
t[0], x_n, r_n
)
pos_end_vs_start = self.c_s_p(t[-1], x_p, r_p) - self.c_s_p(
t[0], x_p, r_p
)
neg_diff = self.c_s_n(t[1:], x_n, r_n) - self.c_s_n(t[:-1], x_n, r_n)
pos_diff = self.c_s_p(t[1:], x_p, r_p) - self.c_s_p(t[:-1], x_p, r_p)
neg_end_vs_start = self.c_s_n(t[-1], x_n, r_n) - self.c_s_n(t[0], x_n, r_n)
pos_end_vs_start = self.c_s_p(t[-1], x_p, r_p) - self.c_s_p(t[0], x_p, r_p)

if self.operating_condition == "discharge":
np.testing.assert_array_less(neg_diff, 1e-16)
Expand Down Expand Up @@ -389,7 +381,7 @@ def test_fluxes(self):
np.testing.assert_array_less(self.N_s_p(t[1:], x_p, r_p[1:]), 1e-16)
if self.operating_condition == "charge":
np.testing.assert_array_less(self.N_s_n(t[1:], x_n, r_n[1:]), 1e-16)
np.testing.assert_array less(-1e-16, self.N_s_p(t[1:], x_p, r_p[1:]))
np.testing.assert_array_less(-1e-16, self.N_s_p(t[1:], x_p, r_p[1:]))
if self.operating_condition == "off":
np.testing.assert_array_almost_equal(self.N_s_n(t, x_n, r_n), 0)
np.testing.assert_array_almost_equal(self.N_s_p(t, x_p, r_p), 0)
Expand Down

0 comments on commit 38a22fd

Please sign in to comment.