BUG: Identified bug with numpy 1.7 ufunc operators#1077
Conversation
This effects binary operators (add, subtract, division and multiply) onlt.
|
Ready for review |
|
I cannot point this to 1.6.x as it requires enhancements which are in master (masked array equality) |
|
Note that this can also be fixed by changing https://github.com/SciTools/iris/blob/master/lib/iris/analysis/maths.py#L537 from operation_function(new_cube.data, out=new_cube.data)to new_cube.data = operation_function(new_cube.data)It's a little cleaner perhaps. I'm not sure of the performance/memory impact of the two approaches. |
Thanks for your interest @esc24 |
|
I'm closing in favour of targeting the v1.6.x branch (made possible after #1079) |
|
Good point @cpelley. |
Replaces messy #1052