@@ -1093,7 +1093,7 @@ def test_i_from_v_from_i(fixture_v_from_i):
1093
1093
Rsh = fixture_v_from_i ['Rsh' ]
1094
1094
Rs = fixture_v_from_i ['Rs' ]
1095
1095
nNsVth = fixture_v_from_i ['nNsVth' ]
1096
- I = fixture_v_from_i ['I' ]
1096
+ current = fixture_v_from_i ['I' ]
1097
1097
I0 = fixture_v_from_i ['I0' ]
1098
1098
IL = fixture_v_from_i ['IL' ]
1099
1099
V = fixture_v_from_i ['V_expected' ]
@@ -1103,15 +1103,15 @@ def test_i_from_v_from_i(fixture_v_from_i):
1103
1103
1104
1104
I_expected = pvsystem .i_from_v (V , IL , I0 , Rs , Rsh , nNsVth ,
1105
1105
method = 'lambertw' )
1106
- assert_allclose (I , I_expected , atol = atol )
1106
+ assert_allclose (current , I_expected , atol = atol )
1107
1107
1108
- I = pvsystem .i_from_v (V , IL , I0 , Rs , Rsh , nNsVth )
1108
+ current = pvsystem .i_from_v (V , IL , I0 , Rs , Rsh , nNsVth )
1109
1109
1110
- assert isinstance (I , type (I_expected ))
1111
- if isinstance (I , np .ndarray ):
1112
- assert isinstance (I .dtype , type (I_expected .dtype ))
1113
- assert I .shape == I_expected .shape
1114
- assert_allclose (I , I_expected , atol = atol )
1110
+ assert isinstance (current , type (I_expected ))
1111
+ if isinstance (current , np .ndarray ):
1112
+ assert isinstance (current .dtype , type (I_expected .dtype ))
1113
+ assert current .shape == I_expected .shape
1114
+ assert_allclose (current , I_expected , atol = atol )
1115
1115
1116
1116
1117
1117
@pytest .fixture (params = [
@@ -1200,13 +1200,13 @@ def test_i_from_v(fixture_i_from_v, method, atol):
1200
1200
IL = fixture_i_from_v ['IL' ]
1201
1201
I_expected = fixture_i_from_v ['I_expected' ]
1202
1202
1203
- I = pvsystem .i_from_v (V , IL , I0 , Rs , Rsh , nNsVth , method = method )
1203
+ current = pvsystem .i_from_v (V , IL , I0 , Rs , Rsh , nNsVth , method = method )
1204
1204
1205
- assert isinstance (I , type (I_expected ))
1206
- if isinstance (I , np .ndarray ):
1207
- assert isinstance (I .dtype , type (I_expected .dtype ))
1208
- assert I .shape == I_expected .shape
1209
- assert_allclose (I , I_expected , atol = atol )
1205
+ assert isinstance (current , type (I_expected ))
1206
+ if isinstance (current , np .ndarray ):
1207
+ assert isinstance (current .dtype , type (I_expected .dtype ))
1208
+ assert current .shape == I_expected .shape
1209
+ assert_allclose (current , I_expected , atol = atol )
1210
1210
1211
1211
1212
1212
def test_PVSystem_i_from_v (mocker ):
0 commit comments