Skip to content

Conversation

rcomer
Copy link
Member

@rcomer rcomer commented Oct 14, 2021

🚀 Pull Request

Description

Aiming to fix #4374. Spliced a dictionary into the mocked api so that fill_value is a float rather than a MagicMock.

Another option would be to specify fill_value in the call to saver.write (and update create_var_call to match). That would be simpler, but I learned more by doing it this way 😆. Happy to change it.


Consult Iris pull request check list

Copy link
Contributor

@trexfeathers trexfeathers left a comment

Choose a reason for hiding this comment

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

Wow!

I don't know if I should be impressed that you solved the problem so quickly, or embarrassed that I didn't know how myself!

@trexfeathers trexfeathers merged commit f696e5a into SciTools:main Oct 15, 2021
@rcomer rcomer deleted the netcdf-zlib-test branch October 15, 2021 13:49
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)
  ...
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.

test_Saver: DeprecationWarning: elementwise comparison failed
2 participants