Ruth Comer
Ruth Comer
> Even better would be a method that only collapses 'Expt ID' here along the dimension being collapsed, so the association of 'Expt ID' values with the 'Ens member' dimension...
The relevant handling for `aggregated_by` looks like this: https://github.com/SciTools/iris/blob/c9506e6a41282e91a27101905cc4e9d3cb866e4b/lib/iris/analysis/__init__.py#L2182-L2217
I believe this bug is very fixable, it just needs someone to find the time. So I say we leave this issue open.
I have proposed a fix for this at #4294.
I still think we should make this work but if we don't make it work we should at least raise a more decipherable error message.
This came up again for me today. This time on load. > The cheapest fix (though I'm not necessarily advocating it) would be to capture the above error and re-raise...
This one is difficult to work around, so I would very much like to see a fix for it.
If we had the dictionary of aliases, it would be pretty easy to provide a callback function that renames the cubes. If the dictionary was public then users could use...
I think this boils down to ```python import iris.cube import numpy as np array = np.ma.array([1.], mask=[0]) arr_slice = array[0] print(type(arr_slice)) cube = iris.cube.Cube(arr_slice) print(type(cube.data)) ``` ``` ``` Because Iris...
As discussed in @SciTools/peloton this morning, I think the fix for this would involve special-casing scalar slices. If the behaviour isn't causing downstream problems, I suggest it would be better...