Flint: A ROI created from Flint can be invalid in BLISS
During an edit_roi_counter
the user selection can be aborted by a BLISS assertion.
The whole ROI selection is lost.
It would be good to filter the result, and at worst skip the problematic ROI.
The problem could be something else like a negative value. In this case it would be better to save it anyway / to normalize it.
Traceback (most recent call last):
File "/users/valls/workspace/bliss.git/bliss/flint/helper/plot_interaction.py", line 602, in __selectionFinished
shapes = self.__roisFromGui(selection)
File "/users/valls/workspace/bliss.git/bliss/flint/helper/plot_interaction.py", line 539, in __roisFromGui
shape = lima_roi.Roi(x, y, w, h, name=name)
File "/users/valls/workspace/bliss.git/bliss/controllers/lima/roi.py", line 219, in __init__
super().__init__(name)
File "/users/valls/workspace/bliss.git/bliss/controllers/lima/roi.py", line 190, in __init__
assert self.is_valid()
AssertionError