Flint CI:
https://gitlab.esrf.fr/bliss/bliss/-/jobs/852869
________________________________ test_edit_rois ________________________________
test_session_without_flint = <bliss.common.session.Session object at 0x7f346eac8ee0>
lima_simulator = ('tango://localhost:42803/id00/limaccds/simulator1', DeviceProxy(tango://localhost:42803/id00/limaccds/simulator1,139862649407552))
def test_edit_rois(test_session_without_flint, lima_simulator):
"""Test that Flint is used during edit rois"""
session = test_session_without_flint
lima = session.config.get("lima_simulator")
def validate_rois():
"""Try to validate ROIs UI when ever it is possible"""
while True:
try:
flint = plot.get_flint(creation_allowed=False)
if flint is not None:
p = flint.get_live_plot(image_detector=lima.name)
if p is not None:
flint.test_active(p.plot_id, qaction="roi-apply-selection")
except Exception as e:
logging.warning(e)
gevent.sleep(1)
try:
with gevent.Timeout(20):
validator = gevent.spawn(validate_rois)
> lima.edit_rois()
tests/scans/test_flint.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/controllers/lima/lima_base.py:1126: in edit_rois
plot_proxy = flint.get_live_plot(image_detector=self.name)
/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/flint/client/proxy.py:526: in get_live_plot
plot_id = self.get_live_plot_detector(image_detector, plot_type="image")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <bliss.flint.client.proxy.FlintClient object at 0x7f34bdcd0c70>
name = 'get_live_plot_detector'
def __getattr__(self, name):
if self._proxy is None:
> raise AttributeError(
"No Flint proxy created. Access to '%s' ignored." % name
)
E AttributeError: No Flint proxy created. Access to 'get_live_plot_detector' ignored.
/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/flint/client/proxy.py:79: AttributeError