Skip to content

Commit 5188ee9

Browse files
committed
paths, names, reference
1 parent ef87465 commit 5188ee9

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

pvlib/ivtools/convert.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""
2-
The ``sdm`` module contains functions to fit single diode models.
2+
The ``convert`` module contains functions to convert between single diode
3+
models.
34
4-
Function names should follow the pattern "fit_" + name of model + "_" +
5-
fitting method.
5+
Function names should follow the pattern "convert_" + name of source model +
6+
"_" + name of target method + "_" + name of conversion method.
67
78
"""
89

@@ -132,12 +133,13 @@ def convert_cec_pvsyst(cec_model, cells_in_series, method='Nelder-Mead',
132133
133134
See Also
134135
--------
135-
pvlib.ivtools.sdm.convert_pvsyst_cec
136+
pvlib.ivtools.convert.convert_pvsyst_cec
136137
137138
References
138139
----------
139140
.. [1] L. Deville et al., "Parameter Translation for Photovoltaic Single
140-
Diode Models", submitted. 2024
141+
Diode Models", Journal of Photovoltaics, vol. 15(3), pp. 451-457,
142+
May 2025. :doi:`10.1109/jphotov.2025.3539319`
141143
142144
.. [2] "IEC 61853-3 Photovoltaic (PV) module performance testing and energy
143145
rating - Part 3: Energy rating of PV modules". IEC, Geneva, 2018.
@@ -276,12 +278,13 @@ def convert_pvsyst_cec(pvsyst_model, method='Nelder-Mead', options=None):
276278
277279
See Also
278280
--------
279-
pvlib.ivtools.sdm.convert_cec_pvsyst
281+
pvlib.ivtools.convert.convert_cec_pvsyst
280282
281283
References
282284
----------
283285
.. [1] L. Deville et al., "Parameter Translation for Photovoltaic Single
284-
Diode Models", submitted. 2024.
286+
Diode Models", Journal of Photovoltaics, vol. 15(3), pp. 451-457,
287+
May 2025. :doi:`10.1109/jphotov.2025.3539319`
285288
286289
.. [2] "IEC 61853-3 Photovoltaic (PV) module performance testing and energy
287290
rating - Part 3: Energy rating of PV modules". IEC, Geneva, 2018.

tests/ivtools/test_convert.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import numpy as np
2-
from pvlib.ivtools import sdm
2+
from pvlib.ivtools import convert
33

44

55
def test_convert_cec_pvsyst():
@@ -8,7 +8,7 @@ def test_convert_cec_pvsyst():
88
'EgRef': 1.121, 'dEgdT': -0.0002677,
99
'R_s': 0.159916, 'R_sh_ref': 113.991, 'a_ref': 1.59068,
1010
'Adjust': 6.42247, 'alpha_sc': 0.00629}
11-
trina660_pvsyst_est = sdm.convert_cec_pvsyst(trina660_cec,
11+
trina660_pvsyst_est = convert.convert_cec_pvsyst(trina660_cec,
1212
cells_in_series)
1313
pvsyst_expected = {'alpha_sc': 0.007478218748188788,
1414
'I_L_ref': 18.227679597516214,
@@ -32,7 +32,7 @@ def test_convert_pvsyst_cec():
3232
'R_s': 0.156, 'R_sh_ref': 200, 'R_sh_0': 800,
3333
'R_sh_exp': 5.5, 'gamma_ref': 1.002, 'mu_gamma': 1e-3,
3434
'cells_in_series': 66}
35-
trina660_cec_est = sdm.convert_pvsyst_cec(trina660_pvsyst)
35+
trina660_cec_est = convert.convert_pvsyst_cec(trina660_pvsyst)
3636
cec_expected = {'alpha_sc': 0.0074,
3737
'I_L_ref': 18.05154226834071,
3838
'I_o_ref': 2.6863417875143392e-14,

0 commit comments

Comments
 (0)