-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mask_landsea
fails when using 2D fx data on 4D cube data
#1349
Comments
iris version: |
looks like iris is not permitting reshaping: in if init_done and self.shape != data.shape:
# The _ONLY_ data reshape permitted is converting a 0-dimensional
# array i.e. self.shape == () into a 1-dimensional array of length
# one i.e. data.shape == (1,)
if self.shape or data.shape != (1,):
emsg = "Require data with shape {!r}, got {!r}."
raise ValueError(emsg.format(self.shape, data.shape)) |
Well, yes, the shape of a cube can not be changed like this. |
yip, but broadcasting the fx data onto the shape of the data cube should be allowed no? |
Yes. I think a straight-forward fix is as follows: |
right on, Klaus! work started in #1350 |
Minimal recipe
Trace (full)
Issue in a nutshell
fx data has shape: (64, 128) and data cube has shape: (36, 17, 64, 128); in
_mask.py
l.117 (not 118 as in the trace, I added a line at pos 117 inspect the two cubes)fails to broadcast fx data onto cube data.
The text was updated successfully, but these errors were encountered: