-
Notifications
You must be signed in to change notification settings - Fork 38
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
Avoid loading entire files into memory when downloading from ESGF #2434
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2434 +/- ##
=======================================
Coverage 94.51% 94.51%
=======================================
Files 246 246
Lines 14023 14024 +1
=======================================
+ Hits 13254 13255 +1
Misses 769 769 ☔ View full report in Codecov by Sentry. |
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.
Very useful, thanks a lot @bouweandela 🍺
@chrisbillowsMO if it is still possible, this bugfix would also be nice to have in the release. |
@bouweandela Shouldn't be a problem. Have added to our checklist. |
Many thanks @chrisbillowsMO - merge at will 🍺 |
Description
Due to psf/requests#5536, downloading files from ESGF loaded entire files into memory, leading to potentially high memory use when downloading large files. This pull request avoids the issue.
Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
projects/ESMValCore/en/latest/contributing.html#dependencies) correctly
To help with the number pull requests: