Skip to content

NetCDF save - stream ALL lazy arrays.#4375

Merged
pp-mo merged 9 commits into
SciTools:mainfrom
trexfeathers:AVD-1867_lazy_saving
Oct 20, 2021
Merged

NetCDF save - stream ALL lazy arrays.#4375
pp-mo merged 9 commits into
SciTools:mainfrom
trexfeathers:AVD-1867_lazy_saving

Conversation

@trexfeathers

Copy link
Copy Markdown
Contributor

🚀 Pull Request

Description

Modifications to the NetCDF saving code to allow all data arrays (e.g. Coord.points) to be streamed if they are lazy.


Consult Iris pull request check list

@pp-mo pp-mo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's an initial suggestion

Comment thread lib/iris/fileformats/netcdf.py Outdated
Comment thread lib/iris/fileformats/netcdf.py Outdated
Comment thread lib/iris/fileformats/netcdf.py
Comment thread lib/iris/tests/unit/fileformats/netcdf/test_Saver__lazy.py
Comment thread lib/iris/tests/unit/fileformats/netcdf/test_Saver__lazy.py
Comment thread lib/iris/util.py Outdated

@pp-mo pp-mo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tidy code : much less fuss than I imagined !
( + I know it took a lot of thinking out )
All comments now addressed.

@pp-mo pp-mo merged commit ea4434e into SciTools:main Oct 20, 2021
tkknight added a commit to tkknight/iris that referenced this pull request Nov 3, 2021
* main: (44 commits)
  [pre-commit.ci] pre-commit autoupdate (SciTools#4395)
  min pin for numpy (nep29) (SciTools#4386)
  Updated environment lockfiles (SciTools#4393)
  Extend stock.mesh api (SciTools#4389)
  Updated environment lockfiles (SciTools#4388)
  Integrate ASV with Nox (SciTools#4378)
  NetCDF save - stream ALL lazy arrays. (SciTools#4375)
  adopt flake8 maccabe complexity metric (SciTools#4380)
  Accept inverse_flattening = 0 for spherical ellipsoid (closes SciTools#4146) (SciTools#4368)
  Updated environment lockfiles (SciTools#4379)
  Prevent warning in `test_Saver` (SciTools#4376)
  drop pyugrid in site.cfg (SciTools#4373)
  `flake8` dependency (SciTools#4371)
  update latest whosnew (SciTools#4372)
  Allow `check_graphic` to be more flexible (SciTools#4370)
  [pre-commit.ci] pre-commit autoupdate (SciTools#4365)
  Updated environment lockfiles (SciTools#4364)
  Update latest.rst (SciTools#4362)
  More clarity on setting `iris-test-data` location. (SciTools#4359)
  update whatsnew (SciTools#4361)
  ...
@trexfeathers trexfeathers deleted the AVD-1867_lazy_saving branch March 31, 2022 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants