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

add time index check and corresponding error handling to PointWiseDownscaler _da_to_df function #37

Open
dgergel opened this issue Aug 7, 2020 · 1 comment

Comments

@dgergel
Copy link
Contributor

dgergel commented Aug 7, 2020

Currently the PointWiseDownscaler seems to fail if the model data time dimension does not have a pandas Datetime Index, and it fails with KeyError: 'time' even when the time attribute is present. This occurs in the _da_to_df function when transposing the data array and extracting the time index for the resulting dataframe.

@jhamman
Copy link
Member

jhamman commented Aug 10, 2020

Thanks for the report. Can you provide an example of the dataset you were using that triggered this error?

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

No branches or pull requests

2 participants