Skip to content

Commit 996092a

Browse files
committed
call keyword arguments as keyword arguments
1 parent 4c3e01d commit 996092a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_pvsystem.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2194,15 +2194,15 @@ def test_pvwatts_dc_arrays_with_k():
21942194
expected = np.array([[nan, 8.9125, 118.45],
21952195
[nan, nan, nan],
21962196
[nan, 8.9125, 118.45]])
2197-
out = pvsystem.pvwatts_dc(irrad_trans, temp_cell, 100, -0.003, 25, 0.01)
2197+
out = pvsystem.pvwatts_dc(irrad_trans, temp_cell, 100, -0.003, k=0.01)
21982198
assert_allclose(out, expected, equal_nan=True)
21992199

22002200

22012201
def test_pvwatts_dc_series_with_k():
22022202
irrad_trans = pd.Series([np.nan, 100, 100, 1200])
22032203
temp_cell = pd.Series([30, np.nan, 30, 30])
22042204
expected = pd.Series(np.array([ nan, nan, 8.9125, 118.45]))
2205-
out = pvsystem.pvwatts_dc(irrad_trans, temp_cell, 100, -0.003, 25, 0.01)
2205+
out = pvsystem.pvwatts_dc(irrad_trans, temp_cell, 100, -0.003, 25, k=0.01)
22062206
assert_series_equal(expected, out)
22072207

22082208

@@ -2217,7 +2217,8 @@ def test_pvwatts_dc_with_k_and_cap_adjustment():
22172217
for k in ks:
22182218
for irrad in irrad_trans:
22192219
out.append(pvsystem.pvwatts_dc(irrad, temp_cell, 100, -0.003,
2220-
25, k, cap_adjustment))
2220+
k=k,
2221+
cap_adjustment=cap_adjustment))
22212222
assert_allclose(out, expected)
22222223

22232224

@@ -2228,7 +2229,7 @@ def test_pvwatts_dc_arrays_with_k_and_cap_adjustment():
22282229
expected = np.array([[nan, 8.9125, 118.2],
22292230
[nan, nan, nan],
22302231
[nan, 8.9125, 118.2]])
2231-
out = pvsystem.pvwatts_dc(irrad_trans, temp_cell, 100, -0.003, 25, 0.01,
2232+
out = pvsystem.pvwatts_dc(irrad_trans, temp_cell, 100, -0.003, k=0.01,
22322233
True)
22332234
assert_allclose(out, expected, equal_nan=True)
22342235

0 commit comments

Comments
 (0)