Skip to content

Commit 73cff15

Browse files
authored
Fix temp_dew mapping in get_psm3 (#1920)
* Fix temp_dew point mapping * Add whatsnew entry
1 parent dba9a9c commit 73cff15

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

docs/sphinx/source/whatsnew.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ What's New
66

77
These are new features and improvements of note in each release.
88

9+
.. include:: whatsnew/v0.10.3.rst
910
.. include:: whatsnew/v0.10.2.rst
1011
.. include:: whatsnew/v0.10.1.rst
1112
.. include:: whatsnew/v0.10.0.rst

docs/sphinx/source/whatsnew/v0.10.3.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ Enhancements
1515

1616
Bug fixes
1717
~~~~~~~~~
18-
18+
* Fix mapping of the dew point column to ``temp_dew`` when ``map_variables``
19+
is True in :py:func:`pvlib.iotools.get_psm3`. (:pull:`1920`)
1920

2021
Testing
2122
~~~~~~~

pvlib/iotools/psm3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
'Clearsky DNI': 'dni_clear',
3131
'Solar Zenith Angle': 'solar_zenith',
3232
'Temperature': 'temp_air',
33-
'Dew point': 'temp_dew',
33+
'Dew Point': 'temp_dew',
3434
'Relative Humidity': 'relative_humidity',
3535
'Pressure': 'pressure',
3636
'Wind Speed': 'wind_speed',

pvlib/tests/iotools/test_psm3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def test_read_psm3_map_variables():
172172
data, metadata = psm3.read_psm3(MANUAL_TEST_DATA, map_variables=True)
173173
columns_mapped = ['Year', 'Month', 'Day', 'Hour', 'Minute', 'dhi', 'ghi',
174174
'dni', 'ghi_clear', 'dhi_clear', 'dni_clear',
175-
'Cloud Type', 'Dew Point', 'solar_zenith',
175+
'Cloud Type', 'temp_dew', 'solar_zenith',
176176
'Fill Flag', 'albedo', 'wind_speed',
177177
'wind_direction', 'precipitable_water',
178178
'relative_humidity', 'temp_air', 'pressure']

0 commit comments

Comments
 (0)