Skip to content

Commit 994a853

Browse files
committed
lint
1 parent e24e62f commit 994a853

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

pvlib/ivtools/sdm/batzelis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def fit_desoto_batzelis(isc0, voc0, imp0, vmp0, alpha_sc, beta_voc):
4444
References
4545
----------
4646
.. [1] E. I. Batzelis, "Simple PV Performance Equations Theoretically Well
47-
Founded on the Single-Diode Model," Journal of Photovoltaics vol. 7,
47+
Founded on the Single-Diode Model," Journal of Photovoltaics vol. 7,
4848
no. 5, pp. 1400-1409, Sep 2017, :doi:`10.1109/JPHOTOV.2017.2711431`
4949
"""
5050
t0 = 298.15 # K

pvlib/pvarray.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def batzelis(effective_irradiance, temp_cell,
424424
alpha_sc : float
425425
Short-circuit current temperature coefficient at STC. [1/K]
426426
beta_voc : float
427-
Open-circuit voltage temperature coefficient at STC. [1/K]
427+
Open-circuit voltage temperature coefficient at STC. [1/K]
428428
429429
Returns
430430
-------
@@ -455,7 +455,7 @@ def batzelis(effective_irradiance, temp_cell,
455455
References
456456
----------
457457
.. [1] E. I. Batzelis, "Simple PV Performance Equations Theoretically Well
458-
Founded on the Single-Diode Model," Journal of Photovoltaics vol. 7,
458+
Founded on the Single-Diode Model," Journal of Photovoltaics vol. 7,
459459
no. 5, pp. 1400-1409, Sep 2017, :doi:`10.1109/JPHOTOV.2017.2711431`
460460
461461
Examples
@@ -477,7 +477,7 @@ def batzelis(effective_irradiance, temp_cell,
477477
# for zero/negative irradiance, use lnG=large negative number so that
478478
# computed voltages are negative and then clipped to zero
479479
with np.errstate(divide='ignore'): # needed for pandas for some reason
480-
lnG = np.log(g, out=np.full_like(g, -9e9), where=g>0)
480+
lnG = np.log(g, out=np.full_like(g, -9e9), where=(g > 0))
481481
lnG = np.where(np.isfinite(g), lnG, np.nan) # also preserve nans
482482

483483
# Eq 9-10

pvlib/singlediode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ def batzelis_keypoints(photocurrent, saturation_current, resistance_series,
904904
References
905905
----------
906906
.. [1] E. I. Batzelis, "Simple PV Performance Equations Theoretically Well
907-
Founded on the Single-Diode Model," Journal of Photovoltaics vol. 7,
907+
Founded on the Single-Diode Model," Journal of Photovoltaics vol. 7,
908908
no. 5, pp. 1400-1409, Sep 2017, :doi:`10.1109/JPHOTOV.2017.2711431`
909909
"""
910910
# convenience variables

tests/test_pvarray.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def test_batzelis():
129129
'i_sc': [ 15.980, 7.972, 19.132, 8.082, 19.397, 0, nan, nan],
130130
'v_oc': [ 50.260, 49.687, 51.172, 45.948, 47.585, 0, nan, nan],
131131
}
132-
132+
133133
# numpy array
134134
actual = pvarray.batzelis(g, t, **params)
135135
for key, exp in expected.items():
@@ -152,3 +152,4 @@ def test_batzelis_negative_voltage():
152152
actual = pvarray.batzelis(1e-10, 25, **params)
153153
assert actual['v_mp'] == 0
154154
assert actual['v_oc'] == 0
155+

0 commit comments

Comments
 (0)