This repository was archived by the owner on Sep 11, 2023. It is now read-only.
Update NetCDF loading to use the cleaner code #623
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
Before this, the NetCDF loading code used a small hack (read file as bytes, then pass bytes into
xarray.open_dataset, then delete bytes variable) because it was faster. Now the library fixed this and we can use the cleaner code.Fixes Issue #602 (I hope)
How Has This Been Tested?
py.test -s, and wanted to compare runtime ofpy.test -s --use_cloud_databefore and after this change (possibly limited to tests that touch this area of the code, e.g.tests/data_sources/test_pv_data_source.pybased on method names). Unfortunately I had 11 failed on master, possibly due to me not having set up external accounts (for data sources I presume?) correctly. Would love some feedback here how to proceed.If your changes affect data processing, have you plotted any changes? i.e. have you done a quick sanity check?
Checklist: