Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ImageWidget computation issue #711

Closed
@apasarkar

Description

@apasarkar

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions