Flint: Support Mosca ROIs edition
This PR supports Mosca ROIs edition from BLISS shell with Flint.
- It mostly feature a
edit_rois
method from the mosca controller. - The actual ROIs are displayed and can be edited
- The edition can be done graphically or with a dialog
- New ROIs can be created
- The changes can be validated or cancelled
It works and can be use the exact same way Lima edit_rois
from Flint.
# setup the MCA
config.get("mca_sim")
mca_sim._set_number_of_channels(3)
mca_sim.rois["roi_all"] = 10, 30, -1
mca_sim.rois["roi_1"] = 500, 1000, 1
mca_sim.rois["roi_g1"] = 500, 600, "0-1"
mca_sim.rois["roi_g2"] = 610, 1000, "2-3"
# use the edit rois feature
mca_sim.edit_rois(acq_time=0.1)
Waiting for ROI edition to finish on mca_sim...
WARNING 2023-09-04 20:05:56,493 flint: Waiting for selection in Flint window.
Applied ROIS roi1, roi2 to mca_sim
Edited by Valentin Valls