Remove exception in tests
(cherry picked from commit 97307bf7)
This patch remove exception about uninitialized canvas
.
This occur in daiquiri CI and in tomo beamline. Probably because there is no VLM setup?
There is maybe better way to fix it, i don't know.
Traceback (most recent call last):
File "/users/valls/workspace/daiquiri-tomo.git/bliss.git/bliss/common/event.py", line 37, in send_safe
return send(*args, **kwargs)
File "/users/valls/workspace/daiquiri-tomo.git/bliss.git/bliss/common/event.py", line 27, in send
dispatcher.send(signal, sender, *args, **kwargs)
File "/nobackup/lvalls1/valls/Software/miniconda3/envs/tomodemo-daiquiri-env/lib/python3.7/site-packages/louie/dispatcher.py", line 344, in send
receiver, original, signal=signal, sender=sender, *arguments, **named
File "/nobackup/lvalls1/valls/Software/miniconda3/envs/tomodemo-daiquiri-env/lib/python3.7/site-packages/louie/robustapply.py", line 57, in robust_apply
return receiver(*arguments, **named)
File "/users/valls/workspace/daiquiri-tomo.git/daiquiri.git/daiquiri/core/hardware/bliss/object.py", line 109, in _event
self._update(name, prop, value)
File "/users/valls/workspace/daiquiri-tomo.git/daiquiri.git/daiquiri/core/hardware/abstract/__init__.py", line 394, in _update
cb(self, name, value)
File "/users/valls/workspace/daiquiri-tomo.git/daiquiri.git/daiquiri/core/components/imageviewer/source.py", line 294, in _translate_changed
self._queue_emit_source()
File "/users/valls/workspace/daiquiri-tomo.git/daiquiri.git/daiquiri/core/components/imageviewer/source.py", line 299, in _queue_emit_source
self._emit_source()
File "/users/valls/workspace/daiquiri-tomo.git/daiquiri.git/daiquiri/core/components/imageviewer/source.py", line 314, in _emit_source
**self.canvas.vlm_image_info,
AttributeError: 'Source' object has no attribute 'canvas'