Skip to content

Conversation

pp-mo
Copy link
Member

@pp-mo pp-mo commented Dec 9, 2019

During work on #3556, it became clear to me that the use of engine.provides within the pyke rules, and in a few places within iris.fileformats.netcdf is confusing : Because this term collides with the special reserved meaning of "provides" within Pyke rules, as seen in the repeated usage of facts_cf.provides(..) in most of our Pyke rules.

In fact, although engine is a Pyke object, engine.provides is just a monkey-patched additional property attached by our netcdf code, to keep track of cube component objects created during rules evaluation (coordinates, cell-measures and ancillaries).

So, this PR just renames it to something less confusing.
This should produce no functional change.

@pp-mo pp-mo changed the title Rename provides Rename "engine.provides" Dec 9, 2019
@pp-mo pp-mo added this to the v3.0.0 milestone Dec 9, 2019
@pp-mo pp-mo changed the title Rename "engine.provides" PI- 3473 Rename "engine.provides" Dec 9, 2019
@pp-mo pp-mo changed the title PI- 3473 Rename "engine.provides" PI-3473 Rename "engine.provides" Dec 9, 2019
@pp-mo pp-mo changed the base branch from master to launch_ancils December 10, 2019 10:59
@pp-mo
Copy link
Member Author

pp-mo commented Dec 10, 2019

pp-mo changed the base branch from master to launch_ancils

Note: this makes sense due to already-mentioned dependence on #3556, which is on the feature branch

@pp-mo
Copy link
Member Author

pp-mo commented Dec 20, 2019

Thanks @stephenworsley
Potentially confusing name re-worded. Hope this is now ok.

Copy link
Contributor

@stephenworsley stephenworsley left a comment

Choose a reason for hiding this comment

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

Looks good, this can be merged when Travis passes.

@abooton abooton merged commit 61e1efe into SciTools:launch_ancils Dec 20, 2019
@pp-mo pp-mo deleted the rename_provides branch January 6, 2020 14:44
abooton pushed a commit to abooton/iris that referenced this pull request Jun 5, 2020
stephenworsley added a commit to stephenworsley/iris that referenced this pull request Aug 20, 2020
… launch_ancils

* 'launch_ancils' of https://github.com/SciTools/iris:
  Resolve conflicts with requirements/test.txt to update the imagehash pin to imagehash>=4.0 (SciTools#3735)
  PI:3358 (WIP) Ensure flags load/save without units (SciTools#3613)
  PI-3473 Rename "engine.provides" (SciTools#3590)
  PI-3473: Whatsnews relating to ancillary load + save. (SciTools#3557)
  PI-3473: Netcdf loading ancillary variables (SciTools#3556)

� Conflicts:
�	lib/iris/fileformats/netcdf.py
�	lib/iris/tests/unit/fileformats/netcdf/test__load_aux_factory.py
�	requirements/core.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants