-
Notifications
You must be signed in to change notification settings - Fork 284
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
Support netCDF load+save on dataset-like objects as well as filepaths. #5214
Conversation
f503e9d
to
6459591
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #5214 +/- ##
==========================================
+ Coverage 89.32% 89.34% +0.02%
==========================================
Files 89 89
Lines 22392 22413 +21
Branches 5375 5380 +5
==========================================
+ Hits 20002 20026 +24
+ Misses 1640 1639 -1
+ Partials 750 748 -2
☔ View full report in Codecov by Sentry. |
UpdateRebased onto latest main |
UpdateI discovered that this feature now has a problem with output to a already-open dataset (one owned by the caller) when
So that means that, in most cases, you can't just Following offline discussion with @bjlittle @trexfeathers
|
Ping @ESadek-MO |
P.S. #5212 will be a follow-up, which should complete essential support for #4994. |
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.
Hey @pp-mo, looks good, just a couple soft suggestions!
Thanks @ESadek-MO |
…rs use duck typing.
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.
My thoughts on the changes to _thread_safe_nc.py
:
Thanks @trexfeathers |
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.
Hey @pp-mo, all looks good now!
Thanks for the review assist @trexfeathers!
Thanks so much, @ESadek-MO @trexfeathers ! |
* upstream/main: Updated environment lockfiles (SciTools#5332) Support netcdf variable emulation (SciTools#5212) Support netCDF load+save on dataset-like objects as well as filepaths. (SciTools#5214) minor refinement to release do-nothing script (SciTools#5326) update bibtex citation for v3.6.0 release (SciTools#5324) Whats new updates for v3.6.0 (SciTools#5323) Added whatsnew notes on netcdf delayed saving and Distributed support. (SciTools#5322) Updated environment lockfiles (SciTools#5320) Bugfix 4566 (SciTools#4569) Simpler/faster data aggregation code in `aggregated_by` (SciTools#4970)
* upstream/main: Updated environment lockfiles (SciTools#5334) Iris Docs: Dark theme ready (SciTools#5299) Updated environment lockfiles (SciTools#5332) Support netcdf variable emulation (SciTools#5212) Support netCDF load+save on dataset-like objects as well as filepaths. (SciTools#5214) minor refinement to release do-nothing script (SciTools#5326) update bibtex citation for v3.6.0 release (SciTools#5324) Whats new updates for v3.6.0 (SciTools#5323) Added whatsnew notes on netcdf delayed saving and Distributed support. (SciTools#5322) Updated environment lockfiles (SciTools#5320) Bugfix 4566 (SciTools#4569) Simpler/faster data aggregation code in `aggregated_by` (SciTools#4970) update release_do_nothing script (SciTools#5311) Restore latest Whats New files. Updated environment lockfiles (SciTools#5308) release_do_nothing script updates from v3.6.0rc0 (SciTools#5306) Whats new updates for v3.6.0rc0 (SciTools#5300) Bump scitools/workflows from 2023.04.3 to 2023.05.0 (SciTools#5303)
Rebased version of #5024
To echo comment on #5024 :
NOTE: now targets
main
branch, instead of previous feature-branchFEATURE_xarray_readwrite
.This is because we are no longer planning to host the majority of the 'bridge' code in the Iris repo, but in a separate 'ncdata' repo : see #4994
Todo:make sure all works with paths as well as filepath-strings