diff --git a/ci/requirements-py35.yml b/ci/requirements-py35.yml index 5fc0077991..fe528f9aab 100644 --- a/ci/requirements-py35.yml +++ b/ci/requirements-py35.yml @@ -24,5 +24,5 @@ dependencies: - shapely # pvfactors dependency - siphon # conda-forge - pip: - - nrel-pysam + - nrel-pysam>=2.0 - pvfactors==1.0.1 diff --git a/ci/requirements-py36.yml b/ci/requirements-py36.yml index e415f67c7d..ba4da5ce30 100644 --- a/ci/requirements-py36.yml +++ b/ci/requirements-py36.yml @@ -24,5 +24,5 @@ dependencies: - shapely # pvfactors dependency - siphon # conda-forge - pip: - - nrel-pysam + - nrel-pysam>=2.0 - pvfactors==1.0.1 diff --git a/ci/requirements-py37.yml b/ci/requirements-py37.yml index 1a6809fba6..359695067e 100644 --- a/ci/requirements-py37.yml +++ b/ci/requirements-py37.yml @@ -24,5 +24,5 @@ dependencies: - shapely # pvfactors dependency - siphon # conda-forge - pip: - - nrel-pysam + - nrel-pysam>=2.0 - pvfactors==1.0.1 diff --git a/docs/sphinx/source/whatsnew/v0.7.2.rst b/docs/sphinx/source/whatsnew/v0.7.2.rst index abd4771101..ce84fe8857 100644 --- a/docs/sphinx/source/whatsnew/v0.7.2.rst +++ b/docs/sphinx/source/whatsnew/v0.7.2.rst @@ -18,6 +18,11 @@ Documentation ~~~~~~~~~~~~~ * Add NumFOCUS affiliation to Sphinx documentation :pull:`862` +Requirements +~~~~~~~~~~~~ +* nrel-pysam (optional) minimum set to v1.0.0 (:issue:`874`) + Contributors ~~~~~~~~~~~~ * Mark Mikofski (:ghuser:`mikofski`) +* Cliff Hansen (:ghuser:`cwhanse`) diff --git a/pvlib/ivtools.py b/pvlib/ivtools.py index 6f101324f7..60fc806d4a 100644 --- a/pvlib/ivtools.py +++ b/pvlib/ivtools.py @@ -92,7 +92,7 @@ def fit_sdm_cec_sam(celltype, v_mp, i_mp, v_oc, i_sc, alpha_sc, beta_voc, raise ImportError("Requires NREL's PySAM package at " "https://pypi.org/project/NREL-PySAM/.") - datadict = {'tech_model': '6parsolve', 'financial_model': 'none', + datadict = {'tech_model': '6parsolve', 'financial_model': None, 'celltype': celltype, 'Vmp': v_mp, 'Imp': i_mp, 'Voc': v_oc, 'Isc': i_sc, 'alpha_isc': alpha_sc, 'beta_voc': beta_voc, 'gamma_pmp': gamma_pmp,