Testing ProgressBar
Bug report
Summary
No need for immediate actions at all. I simply wanted to summarise my experience when trying to test the spiralprogress bar. I found some behaviour which I am not sure if I messed up usage or whether they are bugs. Simply gonna gather them below.
Experienced Behavior
Below are a couple of points that I found and considered to be properly bugs.
- The first doc has a BECFigure added if I see this correctly. This one takes quite a lot of space, and as you see below, adding a
SpiralProgressBar
will end up to look quite differently compared to adding it to a new dock. I suppose this is intended though, just thought I report it briefly.
- I also played around a bit with the
SpiralProgressBar
. Once you add it to a dock, everything looks good at first and alsowidget_list
on dock andrings
on the progressBar widget work. However, once you do a first scan you break this functionality. From the error message pasted below, I deduce that the issue lies in the serialisation of<class 'bec_lib.messages.ProgressMessage'>
for sending the information to the client.
To reproduce:
dock = gui.add_dock()
pg = dock.add_widget_bec('SpiralProgressBar')
dock.widget_list #--> is okay
pg.rings # --> is okay
scans.line_scan(dev.samx,-5,5,steps=100,relative=True)
dock.widget_list # --> not okay
pg.rings # --> not okay
Error message pasted below:
Edited by appel_c