From 09abeb949e21cf154934c0bfd9b98f5c93461dfd Mon Sep 17 00:00:00 2001 From: Kevin Anderson Date: Tue, 1 Aug 2023 10:16:14 -0400 Subject: [PATCH 1/2] fix psm3 request mapping --- pvlib/iotools/psm3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvlib/iotools/psm3.py b/pvlib/iotools/psm3.py index 25c444a91e..d2d31b1388 100644 --- a/pvlib/iotools/psm3.py +++ b/pvlib/iotools/psm3.py @@ -46,7 +46,7 @@ 'ghi': 'ghi', 'dhi': 'dhi', 'dni': 'dni', - 'ghi_clear': 'clearsky_dhi', + 'ghi_clear': 'clearsky_ghi', 'dhi_clear': 'clearsky_dhi', 'dni_clear': 'clearsky_dni', 'zenith': 'solar_zenith_angle', From f3558cf1b26e32b58c456ec3a85abb36f4280279 Mon Sep 17 00:00:00 2001 From: Kevin Anderson Date: Tue, 1 Aug 2023 10:16:19 -0400 Subject: [PATCH 2/2] whatsnew --- docs/sphinx/source/whatsnew/v0.10.2.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/sphinx/source/whatsnew/v0.10.2.rst b/docs/sphinx/source/whatsnew/v0.10.2.rst index 51adbdb5e2..7259f6a566 100644 --- a/docs/sphinx/source/whatsnew/v0.10.2.rst +++ b/docs/sphinx/source/whatsnew/v0.10.2.rst @@ -19,7 +19,8 @@ Enhancements Bug fixes ~~~~~~~~~ - +* :py:func:`~pvlib.iotools.get_psm3` no longer incorrectly returns clear-sky + DHI instead of clear-sky GHI when requesting ``ghi_clear``. (:pull:`1819`) Testing ~~~~~~~