Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dtypes in get_pvgis_tmy when outputformat='epw' #2417

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

AdamRJensen
Copy link
Member

This PR fixes incorrect dtypes returned by get_pvgis_tmy when outputformat='epw' and coerce_year is not None.

@kandersolar kandersolar added this to the v0.12.1 milestone Apr 7, 2025
Co-authored-by: Kevin Anderson <kevin.anderso@gmail.com>
Comment on lines +413 to +414
new_tmy_data = \ # GH 2399
new_tmy_data.astype(dtype=dict(zip(tmy_data.columns, tmy_data.dtypes)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
new_tmy_data = \ # GH 2399
new_tmy_data.astype(dtype=dict(zip(tmy_data.columns, tmy_data.dtypes)))
# GH 2399
new_tmy_data = \
new_tmy_data.astype(dtype=dict(zip(tmy_data.columns, tmy_data.dtypes)))

Sorry my last suggestion broke this :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error with using PVGIS weather data (zenith conversion in airmass?)
2 participants