Fix problem with factories in iris.util.new_axis().#3263
Fix problem with factories in iris.util.new_axis().#3263lbdreyer merged 5 commits intoSciTools:v2.2.xfrom
Conversation
|
What was actually wrong is :
|
| self._assert_cube_notis(res, cube) | ||
|
|
||
| # Check that factory dependencies are actual coords within the cube. | ||
| # Addresses a former bug : see XXXX |
There was a problem hiding this comment.
I assume you'll update this with the issue number?
|
Thanks @lbdreyer ! |
That was not related after all. Let's go ahead with this ! |
e0aa55a to
0ceb0b6
Compare
|
Following offline discussion with @lbdreyer : |
|
Great, thanks @pp-mo ! |
* Fix problem with factories from iris.util.new_axis(). * Added whatsnew. * Licence header fix. * Reference PR in comment. * Revised whatsnew.
* Fix problem with factories from iris.util.new_axis(). * Added whatsnew. * Licence header fix. * Reference PR in comment. * Revised whatsnew.
* Fix problem with factories from iris.util.new_axis(). * Added whatsnew. * Licence header fix. * Reference PR in comment. * Revised whatsnew.
It was found that adding an axis to a cube with an aux-factory had a subtle bug, which then causes errors when you copy the result :
Example:
The new addition to the test code should demonstrate this (fails when run against old code).