qudi icon indicating copy to clipboard operation
qudi copied to clipboard

Type error in core/garbage_collector.py

Open sidneycadot opened this issue 1 year ago • 0 comments

In core/garbage_collector.py, a QTimer's start method is called with a float argument which should be an int argument. Probably in earlier versions of Python/PyQt5 this was implicitly handled, but at least in Python 3.10.6 this halts with a TypeError exception.

To fix, change core/garbage_collector.py line 46 from

self.timer.start(interval * 1000)

To

self.timer.start(round(interval * 1000))

sidneycadot avatar Aug 05 '22 11:08 sidneycadot