The QMI_Instrument and QMI_TaskRunner (which inherit from QMI_RpcObject) are now equipped with specific __enter__ and __exit__ methods, which in the case of QMI_Instrument
also open and close the instrument when run with a with context manager protocol. Meanwhile QMI_TaskRunner starts and stops then joins a QMI task thread. In practise, these context managers
can be used instead of the to-be-obsoleted open_close and start_stop_join context managers. The context manager protocol cannot be used for QMI_RpcObject directly.
Relevant unit-tests added
Docstrings added and improved.
Fix on scheduled full CI unit-test pipeline which was missing installing of dependencies.
The
QMI_Instrument
andQMI_TaskRunner
(which inherit fromQMI_RpcObject
) are now equipped with specific__enter__
and__exit__
methods, which in the case ofQMI_Instrument
also open and close the instrument when run with awith
context manager protocol. MeanwhileQMI_TaskRunner
starts and stops then joins a QMI task thread. In practise, these context managers can be used instead of the to-be-obsoletedopen_close
andstart_stop_join
context managers. The context manager protocol cannot be used forQMI_RpcObject
directly.Relevant unit-tests added
Docstrings added and improved.
Fix on scheduled full CI unit-test pipeline which was missing installing of dependencies.