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 loading of Daymet point data #223

Merged
merged 3 commits into from
Apr 9, 2024
Merged

Fix loading of Daymet point data #223

merged 3 commits into from
Apr 9, 2024

Conversation

fnattino
Copy link
Contributor

Fix #222

@Peter9192
Copy link
Collaborator

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/

@Peter9192
Copy link
Collaborator

Perhaps we could add your example from #222 as a test case, so we keep an eye on future changes

@fnattino
Copy link
Contributor Author

fnattino commented Apr 8, 2024

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)
Copy link
Contributor Author

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

@fnattino fnattino requested a review from Peter9192 April 8, 2024 20:10
Copy link
Collaborator

@Peter9192 Peter9192 left a 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!

@fnattino fnattino merged commit 472aad8 into main Apr 9, 2024
4 checks passed
@fnattino fnattino deleted the fix-dayment-load-point branch April 9, 2024 07:39
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

Successfully merging this pull request may close these issues.

CSV header in Daymet point data
2 participants