Skip to content

Commit 6b5b644

Browse files
committed
Fix dtypes in get_pvgis_tmy when outputformat='epw'
1 parent 0deb93f commit 6b5b644

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pvlib/iotools/pvgis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ def _coerce_and_roll_tmy(tmy_data, tz, year):
410410
np.roll(tmy_data, tz, axis=0),
411411
columns=tmy_data.columns,
412412
index=new_index)
413+
new_tmy_data = new_tmy_data.astype(dtype=dict(zip(tmy_data.columns, tmy_data.dtypes)))
413414
return new_tmy_data
414415

415416

0 commit comments

Comments
 (0)