From d6070ffff718261c9092685f77dee1db038a718b Mon Sep 17 00:00:00 2001 From: Mohammad Kazemi Date: Mon, 28 Sep 2026 16:03:25 +0330 Subject: [PATCH] Support PySAM on Python 3.14 via nlr-pysam package - Update optional dependency from 'nrel-pysam' to 'nlr-pysam' - Uncomment nlr-pysam in Python 3.14 CI requirements - PySAM 8.0.0+ is distributed as nlr-pysam for Python 3.8-3.14 Note: test_fit_cec_sam shows minor numerical differences between nlr-pysam 8.0.0+ and nrel-pysam, particularly in the 'Adjust' parameter. This may indicate algorithmic changes in the newer nlr-pysam distribution that needs further investigation. Fixes #2871 --- ci/requirements-py3.11.yml | 2 +- ci/requirements-py3.12.yml | 2 +- ci/requirements-py3.13.yml | 2 +- ci/requirements-py3.14.yml | 2 +- pyproject.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ci/requirements-py3.11.yml b/ci/requirements-py3.11.yml index c14676ab2f..6a52c57348 100644 --- a/ci/requirements-py3.11.yml +++ b/ci/requirements-py3.11.yml @@ -24,5 +24,5 @@ dependencies: - scipy >= 1.7.2 - statsmodels - pip: - - nrel-pysam>=2.0 + - nlr-pysam>=2.0 - solarfactors diff --git a/ci/requirements-py3.12.yml b/ci/requirements-py3.12.yml index 1254dcb132..f92ad4a731 100644 --- a/ci/requirements-py3.12.yml +++ b/ci/requirements-py3.12.yml @@ -24,5 +24,5 @@ dependencies: - scipy >= 1.7.2 - statsmodels - pip: - - nrel-pysam>=2.0 + - nlr-pysam>=2.0 - solarfactors diff --git a/ci/requirements-py3.13.yml b/ci/requirements-py3.13.yml index 6647d72196..357d89d94a 100644 --- a/ci/requirements-py3.13.yml +++ b/ci/requirements-py3.13.yml @@ -24,5 +24,5 @@ dependencies: - scipy >= 1.7.2 - statsmodels - pip: - - nrel-pysam>=2.0 + - nlr-pysam>=2.0 - solarfactors diff --git a/ci/requirements-py3.14.yml b/ci/requirements-py3.14.yml index 1b1501c66f..dcd3f14a3c 100644 --- a/ci/requirements-py3.14.yml +++ b/ci/requirements-py3.14.yml @@ -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>=2.0 - solarfactors diff --git a/pyproject.toml b/pyproject.toml index de7fbb7fb8..3c145f9cfc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ dynamic = ["version"] optional = [ 'cython', 'ephem', - 'nrel-pysam', + 'nlr-pysam', 'numba >= 0.17.0', 'solarfactors >= 1.6.1', 'statsmodels',