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

Cannot convert float NaN to integer #47

Closed raimund-schluessler closed 2 years ago

raimund-schluessler commented 2 years ago

Loading this file: https://sharing.biotec.tu-dresden.de/index.php/s/kJ6aZDQOMcHpyDd

Leads to this error in the Colocalize view:

Unhandled exception in Impose version 0.2.3.post10:
Traceback (most recent call last):
  File "D:\Data\Biotec\Software\00_Programs\Impose\impose\gui\colocalize.py", line 203, in on_dataset_selected
    self.update_ui_from_scheme()
  File "D:\Data\Biotec\Software\00_Programs\Impose\impose\gui\colocalize.py", line 354, 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 168, in set_structure_composite
    tr = vis.get_roi_transform(roi)
  File "D:\Data\Biotec\Software\00_Programs\Impose\impose\gui\visualize.py", line 154, in get_roi_transform
    _, tr = roi.getArraySlice(data, img)
  File "D:\Data\Biotec\Software\00_Programs\BMicro\venv\lib\site-packages\pyqtgraph\graphicsItems\ROI.py", line 1130, in getArraySlice
    (int(min(intBounds.left(), intBounds.right())), int(1+max(intBounds.left(), intBounds.right()))),
ValueError: cannot convert float NaN to integer

@juko1