Skip to content

Cannot convert float NaN to integer #47

@raimund-schluessler

Description

@raimund-schluessler

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

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