Closed
Description
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.
Metadata
Metadata
Assignees
Labels
No labels