Skip to content

Commit a874b11

Browse files
committed
test fixes
1 parent 515a359 commit a874b11

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

pvlib/tests/test_pvsystem.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2211,6 +2211,7 @@ def test_SingleAxisTrackerMount_get_orientation(single_axis_tracker_mount):
22112211
err_msg = f"{key} value incorrect"
22122212
assert actual[key] == pytest.approx(expected_value), err_msg
22132213

2214+
22142215
def test_dc_ohms_from_percent():
22152216
expected = .1425
22162217
out = pvsystem.dc_ohms_from_percent(38, 8, 3, 1, 1)
@@ -2248,7 +2249,8 @@ def test_Array_dc_ohms_from_percent(mocker):
22482249

22492250
expected = .1425
22502251

2251-
array = pvsystem.Array(array_losses_parameters={'dc_ohmic_percent': 3},
2252+
array = pvsystem.Array(pvsystem.FixedMount(0, 180),
2253+
array_losses_parameters={'dc_ohmic_percent': 3},
22522254
module_parameters={'I_mp_ref': 8,
22532255
'V_mp_ref': 38})
22542256
out = array.dc_ohms_from_percent()
@@ -2261,7 +2263,8 @@ def test_Array_dc_ohms_from_percent(mocker):
22612263
)
22622264
assert_allclose(out, expected)
22632265

2264-
array = pvsystem.Array(array_losses_parameters={'dc_ohmic_percent': 3},
2266+
array = pvsystem.Array(pvsystem.FixedMount(0, 180),
2267+
array_losses_parameters={'dc_ohmic_percent': 3},
22652268
module_parameters={'Impo': 8,
22662269
'Vmpo': 38})
22672270
out = array.dc_ohms_from_percent()
@@ -2274,7 +2277,8 @@ def test_Array_dc_ohms_from_percent(mocker):
22742277
)
22752278
assert_allclose(out, expected)
22762279

2277-
array = pvsystem.Array(array_losses_parameters={'dc_ohmic_percent': 3},
2280+
array = pvsystem.Array(pvsystem.FixedMount(0, 180),
2281+
array_losses_parameters={'dc_ohmic_percent': 3},
22782282
module_parameters={'Impp': 8,
22792283
'Vmpp': 38})
22802284
out = array.dc_ohms_from_percent()
@@ -2295,5 +2299,6 @@ def test_Array_dc_ohms_from_percent(mocker):
22952299
'{"V_mp_ref", "I_mp_Ref"}, '
22962300
'{"Vmpo", "Impo"}, or '
22972301
'{"Vmpp", "Impp"}.')):
2298-
array = pvsystem.Array(array_losses_parameters={'dc_ohmic_percent': 3})
2302+
array = pvsystem.Array(pvsystem.FixedMount(0, 180),
2303+
array_losses_parameters={'dc_ohmic_percent': 3})
22992304
out = array.dc_ohms_from_percent()

0 commit comments

Comments
 (0)