light-scattering-io / caqtus

Package that provides tools to control an experiment
MIT License
0 stars 0 forks source link

ShotViewer doesn't raise an error on missing data #21

Open damienBloch opened 3 months ago

damienBloch commented 3 months ago

Describe the bug

When ShotViewer is asked to display data that doesn't exists for a shot, it will not raise an error but the application will stop updating correctly.

Expected behavior If asked to query data that doesn't exists for a shot, the application should display an error message or at least shutdown properly.

To Reproduce Steps to reproduce the behavior:

  1. Launch ShotViewer
  2. Add a view to an image that doesn't exists for a sequence
  3. Double on a sequence that doesn't have this image label
  4. The image view is not updated, but no feedback is given to the user

Additional context This error seems to come from QtAsyncio that doesn't raise error properly, see this issue.

light-scattering-io commented 3 months ago

Partially fixed, now ShotViewer will crash on missing data