From 944ec21faf071e574d955b750df264aeef4799a5 Mon Sep 17 00:00:00 2001 From: r0hansaxena Date: Sat, 7 Mar 2026 17:27:06 +0530 Subject: [PATCH 1/4] Fix PVSystem module_type docstring default --- docs/sphinx/source/whatsnew/v0.15.1.rst | 3 +++ pvlib/pvsystem.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/sphinx/source/whatsnew/v0.15.1.rst b/docs/sphinx/source/whatsnew/v0.15.1.rst index 5e93232eed..8bee49ebb8 100644 --- a/docs/sphinx/source/whatsnew/v0.15.1.rst +++ b/docs/sphinx/source/whatsnew/v0.15.1.rst @@ -38,6 +38,9 @@ Documentation * Add AI checkbox to PR template, and auto-generate a comment on PRs from first-time contributors regarding AI and contributing guidelines. (:issue:`2617`, :pull:`2624`) +* Fix :py:class:`pvlib.pvsystem.PVSystem` docstring incorrectly stating + ``module_type`` defaults to ``'glass_polymer'`` instead of ``None``. + (:issue:`2634`) * Fix a broken docstring reference to ``grounddiffuse`` in :py:func:`pvlib.irradiance.poa_components` (:issue:`2089`, :pull:`2708`) diff --git a/pvlib/pvsystem.py b/pvlib/pvsystem.py index fe85359b99..9521887d74 100644 --- a/pvlib/pvsystem.py +++ b/pvlib/pvsystem.py @@ -140,7 +140,7 @@ class PVSystem: module : string, optional The model name of the modules. - module_type : string, default 'glass_polymer' + module_type : string, default None Describes the module's construction. Valid strings are 'glass_polymer' and 'glass_glass'. Used for cell and module temperature calculations. From 277fbb4bb5583d95cc68200067a70575d0af474b Mon Sep 17 00:00:00 2001 From: r0hansaxena Date: Sat, 7 Mar 2026 17:58:44 +0530 Subject: [PATCH 2/4] Fix docstring references in v0.15.1 release notes Updated issue and pull request references for clarity. --- docs/sphinx/source/whatsnew/v0.15.1.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sphinx/source/whatsnew/v0.15.1.rst b/docs/sphinx/source/whatsnew/v0.15.1.rst index 8bee49ebb8..aa137b2959 100644 --- a/docs/sphinx/source/whatsnew/v0.15.1.rst +++ b/docs/sphinx/source/whatsnew/v0.15.1.rst @@ -40,7 +40,7 @@ Documentation (:issue:`2617`, :pull:`2624`) * Fix :py:class:`pvlib.pvsystem.PVSystem` docstring incorrectly stating ``module_type`` defaults to ``'glass_polymer'`` instead of ``None``. - (:issue:`2634`) + (:issue:`2634`, :pull:`2713`) * Fix a broken docstring reference to ``grounddiffuse`` in :py:func:`pvlib.irradiance.poa_components` (:issue:`2089`, :pull:`2708`) From 1b32f0c1fddaf1768992a1e2f7a57e248dabfaa0 Mon Sep 17 00:00:00 2001 From: r0hansaxena Date: Mon, 9 Mar 2026 20:03:38 +0530 Subject: [PATCH 3/4] Update docs/sphinx/source/whatsnew/v0.15.1.rst Co-authored-by: Cliff Hansen --- docs/sphinx/source/whatsnew/v0.15.1.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sphinx/source/whatsnew/v0.15.1.rst b/docs/sphinx/source/whatsnew/v0.15.1.rst index aa137b2959..aa4c92fce3 100644 --- a/docs/sphinx/source/whatsnew/v0.15.1.rst +++ b/docs/sphinx/source/whatsnew/v0.15.1.rst @@ -38,8 +38,8 @@ Documentation * Add AI checkbox to PR template, and auto-generate a comment on PRs from first-time contributors regarding AI and contributing guidelines. (:issue:`2617`, :pull:`2624`) -* Fix :py:class:`pvlib.pvsystem.PVSystem` docstring incorrectly stating - ``module_type`` defaults to ``'glass_polymer'`` instead of ``None``. +* Correct :py:class:`pvlib.pvsystem.PVSystem` docstring to state that + ``module_type`` defaults to ``None``. (:issue:`2634`, :pull:`2713`) * Fix a broken docstring reference to ``grounddiffuse`` in :py:func:`pvlib.irradiance.poa_components` From ed22c4d1002d75329c60f74141316f9ec4462c43 Mon Sep 17 00:00:00 2001 From: r0hansaxena Date: Mon, 9 Mar 2026 21:30:04 +0530 Subject: [PATCH 4/4] Update pvlib/pvsystem.py Co-authored-by: Echedey Luis <80125792+echedey-ls@users.noreply.github.com> --- pvlib/pvsystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvlib/pvsystem.py b/pvlib/pvsystem.py index 9521887d74..1fe1359d8e 100644 --- a/pvlib/pvsystem.py +++ b/pvlib/pvsystem.py @@ -140,7 +140,7 @@ class PVSystem: module : string, optional The model name of the modules. - module_type : string, default None + module_type : string, optional Describes the module's construction. Valid strings are 'glass_polymer' and 'glass_glass'. Used for cell and module temperature calculations.