Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/sphinx/source/whatsnew/v0.12.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Breaking Changes

Bug fixes
~~~~~~~~~

* :py:func:`pvlib.iotools.get_pvgis_tmy` now returns the correct dtypes when
when ``outputformat='epw'``. (:issue:`2399`, :pull:`2417`)

Enhancements
~~~~~~~~~~~~
Expand Down
3 changes: 3 additions & 0 deletions pvlib/iotools/pvgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ def _coerce_and_roll_tmy(tmy_data, tz, year):
np.roll(tmy_data, tz, axis=0),
columns=tmy_data.columns,
index=new_index)
# GH 2399
new_tmy_data = \
new_tmy_data.astype(dtype=dict(zip(tmy_data.columns, tmy_data.dtypes)))
return new_tmy_data


Expand Down
Loading