You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is some code here that uses the "size" attribute. ImageWidget uses this code to do some data sampling to generate a histogram/colorbar for each image stack being displayed. Previously, imageWidget did not require arrays to implement size; instead shape was sufficient.
We should change data.size to np.prod(data.shape) to get the total number of elements.