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

Viewing data with only NaNs raised error #36

Closed raimund-schluessler closed 2 years ago

raimund-schluessler commented 2 years ago

When you load data that only includes NaN values the following error is raised:

Unhandled exception in Impose version 0.2.2.post1:
Traceback (most recent call last):
  File "D:\Data\Biotec\Software\00_Programs\Impose\impose\gui\colocalize.py", line 194, in on_dataset_selected
    self.update_ui_from_scheme()
  File "D:\Data\Biotec\Software\00_Programs\Impose\impose\gui\colocalize.py", line 336, in update_ui_from_scheme
    self.rois.set_structure_composite(self.current_structure_composite,
  File "D:\Data\Biotec\Software\00_Programs\Impose\impose\gui\colocalize_pgrois.py", line 170, in set_structure_composite
    tr = vis.get_roi_transform(roi)
  File "D:\Data\Biotec\Software\00_Programs\Impose\impose\gui\visualize.py", line 150, in get_roi_transform
    data = np.array(self.imageView.image)[:, :, 0]
IndexError: too many indices for array: array is 0-dimensional, but 3 were indexed