-
Notifications
You must be signed in to change notification settings - Fork 2
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 loading of Daymet point data #223
Conversation
I can confirm this fixes the issue. Would be good to find the source of this change. Doesn't seem to come from daymetr https://github.com/bluegreen-labs/daymetr/commits/master/ |
Perhaps we could add your example from #222 as a test case, so we keep an eye on future changes |
Added a test to check whether the downloaded CSV files are parsed properly. |
@@ -254,6 +254,7 @@ def download(self): | |||
def download_point(self, point: Point): | |||
"""Download data for a single point.""" | |||
path = self._point_path(point) | |||
path.parent.mkdir(exist_ok=True, parents=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to get the test to work, I had to fix also #221
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the test!
Fix #222