From 996361d56dce8d4f14b0a1f3484528b90eb50ace Mon Sep 17 00:00:00 2001 From: Kevin Anderson Date: Tue, 1 Aug 2023 12:09:39 -0400 Subject: [PATCH] Fix incorrect `ghi_clear` PSM3 request mapping (#1819) * fix psm3 request mapping * whatsnew --- docs/sphinx/source/whatsnew/v0.10.2.rst | 3 ++- pvlib/iotools/psm3.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 ~~~~~~~ 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',