Hello labscripts devs,
I am new to labscripts, and have been doing some testing to see how it might be useful for our experiments. It looks really fantastic.
When trying to run multiple single-shot routines in Lyse, I noticed that an exception pops up related to the progress bar widget in the "shots" workflow.
__main__.py", line 1106, in paint
progress_bar_option.progress = status_percent
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'float' object cannot be interpreted as an integer
I addressed this by basically forcing the the status percent variable to int by changing status_percent = self.model.data(index, self.ROLE_STATUS_PERCENT) to status_percent = round(self.model.data(index, self.ROLE_STATUS_PERCENT))
Was this a previously known bug?
All the best,
Phelan