Skip to content

Commit 3e49d4a

Browse files
committed
docstring work
1 parent ae3c067 commit 3e49d4a

File tree

2 files changed

+27
-21
lines changed

2 files changed

+27
-21
lines changed

pvlib/pvsystem.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2546,20 +2546,23 @@ def singlediode(photocurrent, saturation_current, resistance_series,
25462546
25472547
References
25482548
----------
2549-
.. [1] S.R. Wenham, M.A. Green, M.E. Watt, "Applied Photovoltaics" ISBN
2550-
0 86758 909 4
2549+
.. [1] S. R. Wenham, M. A. Green, M. E. Watt, "Applied Photovoltaics",
2550+
Centre for Photovoltaic Devices and Systems, 1995. ISBN
2551+
0867589094
25512552
25522553
.. [2] A. Jain, A. Kapoor, "Exact analytical solutions of the
25532554
parameters of real solar cells using Lambert W-function", Solar
2554-
Energy Materials and Solar Cells, 81 (2004) 269-277.
2555+
Energy Materials and Solar Cells, vol. 81 no. 2, pp. 269-277, Feb. 2004.
2556+
:doi:`10.1016/j.solmat.2003.11.018`.
25552557
2556-
.. [3] D. King et al, "Sandia Photovoltaic Array Performance Model",
2557-
SAND2004-3535, Sandia National Laboratories, Albuquerque, NM
2558+
.. [3] D. L. King, E. E. Boyson and J. A. Kratochvil "Photovoltaic Array
2559+
Performance Model", Sandia National Laboratories, Albuquerque, NM, USA.
2560+
Report SAND2004-3535, 2004.
25582561
25592562
.. [4] J.W. Bishop, "Computer simulation of the effects of electrical
2560-
mismatches in photovoltaic cell interconnection circuits" Solar Cell
2561-
(1988)
2562-
https://doi.org/10.1016/0379-6787(88)90059-2
2563+
mismatches in photovoltaic cell interconnection circuits" Solar Cells,
2564+
vol. 25 no. 1, pp. 73-89, Oct. 1988.
2565+
:doi:`doi.org/10.1016/0379-6787(88)90059-2`
25632566
"""
25642567
args = (photocurrent, saturation_current, resistance_series,
25652568
resistance_shunt, nNsVth) # collect args

pvlib/singlediode.py

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -141,18 +141,20 @@ def bishop88(diode_voltage, photocurrent, saturation_current,
141141
142142
References
143143
----------
144-
.. [1] "Computer simulation of the effects of electrical mismatches in
145-
photovoltaic cell interconnection circuits" JW Bishop, Solar Cell (1988)
146-
:doi:`10.1016/0379-6787(88)90059-2`
147-
148-
.. [2] "Improved equivalent circuit and Analytical Model for Amorphous
149-
Silicon Solar Cells and Modules." J. Mertens, et al., IEEE Transactions
150-
on Electron Devices, Vol 45, No 2, Feb 1998.
144+
.. [1] J.W. Bishop, "Computer simulation of the effects of electrical
145+
mismatches in photovoltaic cell interconnection circuits" Solar Cells,
146+
vol. 25 no. 1, pp. 73-89, Oct. 1988.
147+
:doi:`doi.org/10.1016/0379-6787(88)90059-2`
148+
149+
.. [2] J. Merten, J. M. Asensi, C. Voz, A. V. Shah, R. Platz and J. Andreu,
150+
"Improved equivalent circuit and Analytical Model for Amorphous
151+
Silicon Solar Cells and Modules." , IEEE Transactions
152+
on Electron Devices, vol. 45, no. 2, pp. 423-429, Feb 1998.
151153
:doi:`10.1109/16.658676`
152154
153-
.. [3] "Performance assessment of a simulation model for PV modules of any
154-
available technology", André Mermoud and Thibault Lejeune, 25th EUPVSEC,
155-
2010
155+
.. [3] A. Mermoud and T. Lejeune, "Performance assessment of a simulation
156+
model for PV modules of any available technology", In Proc. of the 25th
157+
European PVSEC, Valencia, ES, 2010.
156158
:doi:`10.4229/25thEUPVSEC2010-4BV.1.114`
157159
"""
158160
# calculate recombination loss current where d2mutau > 0
@@ -917,7 +919,8 @@ def _lambertw(photocurrent, saturation_current, resistance_series,
917919
# remove try/except when scipy>=1.15, and golden mean is retired
918920
try:
919921
from scipy.optimize.elementwise import find_minimum
920-
init = (-1., 0.8*v_oc, v_oc) # left negative to insure strict inequality
922+
# left negative to insure strict inequality
923+
init = (-1., 0.8*v_oc, v_oc)
921924
res = find_minimum(_vmp_opt, init,
922925
args=(params['photocurrent'],
923926
params['saturation_current'],
@@ -930,10 +933,10 @@ def _lambertw(photocurrent, saturation_current, resistance_series,
930933
# switch to old golden section method
931934
p_mp, v_mp = _golden_sect_DataFrame(params, 0., v_oc * 1.14,
932935
_pwr_optfcn)
933-
#i_mp = p_mp / v_mp
936+
934937
i_mp = _lambertw_i_from_v(v_mp, **params)
935938

936-
# Find Ix and Ixx using Lambert W
939+
# Find Ix and Ixx using Lambert W
937940
i_x = _lambertw_i_from_v(0.5 * v_oc, **params)
938941

939942
i_xx = _lambertw_i_from_v(0.5 * (v_oc + v_mp), **params)

0 commit comments

Comments
 (0)