Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/requirements-py3.11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ dependencies:
- scipy >= 1.7.2
- statsmodels
- pip:
- nrel-pysam>=2.0
- nlr-pysam
- solarfactors
2 changes: 1 addition & 1 deletion ci/requirements-py3.12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ dependencies:
- scipy >= 1.7.2
- statsmodels
- pip:
- nrel-pysam>=2.0
- nlr-pysam
- solarfactors
2 changes: 1 addition & 1 deletion ci/requirements-py3.13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ dependencies:
- scipy >= 1.7.2
- statsmodels
- pip:
- nrel-pysam>=2.0
- nlr-pysam
- solarfactors
2 changes: 1 addition & 1 deletion ci/requirements-py3.14.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ dependencies:
- scipy >= 1.7.2
- statsmodels
- pip:
# - nrel-pysam>=2.0 # not available for py 3.14 as of 2025-11-03
- nlr-pysam
- solarfactors
6 changes: 4 additions & 2 deletions pvlib/ivtools/sdm/cec.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ def fit_cec_sam(celltype, v_mp, i_mp, v_oc, i_sc, alpha_sc, beta_voc,
try:
from PySAM import PySSC
except ImportError:
raise ImportError("Requires NREL's PySAM package at "
"https://pypi.org/project/NREL-PySAM/.")
raise ImportError(
"Requires PySAM. Install 'nlr-pysam' for PySAM >= 8.0.0 "
Comment thread
mokazemi marked this conversation as resolved.
Resolved
"(older versions were distributed as 'NREL-PySAM')."
)

datadict = {'tech_model': '6parsolve', 'financial_model': None,
'celltype': celltype, 'Vmp': v_mp,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ dynamic = ["version"]
optional = [
'cython',
'ephem',
'nrel-pysam',
'nlr-pysam',
'numba >= 0.17.0',
'solarfactors >= 1.6.1',
'statsmodels',
Expand Down
Loading