GuckLab / impose

Align microscopy images using custom-defined structural patterns and superimpose those on data from other imaging modalities.
GNU General Public License v3.0
1 stars 0 forks source link

Better handle empty image view #34

Closed raimund-schluessler closed 2 years ago

raimund-schluessler commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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