Skip to content
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

Better handle empty image view #34

Closed
wants to merge 1 commit into from

Conversation

raimund-schluessler
Copy link
Contributor

@raimund-schluessler raimund-schluessler commented Mar 25, 2022

The image view can be empty when images with only NaN values are viewed. In this case np.array(self.image_view.image) results in a zero-dimensional array, which cannot be indexed.

I try to account for this here. Closes #36.

@paulmueller
Copy link
Member

I will have to take a closer look here. This seems too invasive to me. Maybe it makes sense to not clear the image view or something.

@paulmueller
Copy link
Member

I could resolve this by handling the data properly in the first place (see commits referencing #36).

@paulmueller paulmueller closed this May 4, 2022
@raimund-schluessler raimund-schluessler deleted the fix/noid/empty-image-view branch May 6, 2022 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Viewing data with only NaNs raised error
2 participants