Skip to content

Commit fdbaec3

Browse files
committed
correct argument and value order
1 parent cc75255 commit fdbaec3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ivtools/test_sde.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ def test_fit_sandia_simple_bad_iv(get_bad_iv_curves):
5757
(np.array([3., 2.9, 2.8, 2.7, 2.6, 2.5, 2.4, 1.7, 0.8, 0.]),
5858
np.array([0., 0.2, 0.4, 0.6, 0.8, 1., 1.2, 1.4, 1.45, 1.5]),
5959
10.,
60-
(2.3392, 11.6865, -.232, -.2596, -.7119)),
60+
(2.3392, 11.6865, -.2596, -.232, -.7119)),
6161
(np.array(
6262
[5., 4.9, 4.8, 4.7, 4.6, 4.5, 4.4, 4.3, 4.2, 4.1, 4., 3.8, 3.5, 1.7,
6363
0.]),
6464
np.array(
6565
[0., .1, .2, .3, .4, .5, .6, .7, .8, .9, 1., 1.1, 1.18, 1.2, 1.22]),
6666
15.,
67-
(-22.0795, 27.1196, -4.2076, -.0056, -.0498))])
67+
(-22.0795, 27.1196, -.0056, -4.2076, -.0498))])
6868
def test__fit_sandia_cocontent(i, v, nsvth, expected):
6969
# test confirms agreement with Matlab code. The returned parameters
7070
# are nonsense
71-
iph, io, rsh, rs, n = sde._fit_sandia_cocontent(v, i, nsvth)
71+
iph, io, rs, rsh, n = sde._fit_sandia_cocontent(v, i, nsvth)
7272
np.testing.assert_allclose(iph, np.array(expected[0]), atol=.0001)
7373
np.testing.assert_allclose(io, np.array([expected[1]]), atol=.0001)
7474
np.testing.assert_allclose(rs, np.array([expected[2]]), atol=.0001)

0 commit comments

Comments
 (0)