Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ts_main_telescope
-
Labels:
-
Story Points:3
-
Sprint:TSSW Sprint - Aug 15 - Aug 29
-
Team:Telescope and Site
-
Urgent?:No
Description
Integrate the M2 Python EUI (ts_m2gui) with common module (ts_m2com) in phase 1. This is to reuse the controller in common module (which has been used in the M2 CSC, ts_m2). By doing this, the M2 Python EUI should be able to support the simulation mode and verify its functionality.
The main point in this phase 1 is to remove the duplicated code in ts_m2gui and adapt the qasync.
Attachments
Issue Links
- is triggering
-
DM-35952 Integrate the M2 Python EUI with Common Module in Phase 2
- Done
I realized the pytest-qt and qasync can not be used at the same time for the event loop. The pytest-qt is just a wrapper of QtTest in PySide2. Therefore, it does not recognize the syntax of async or asyncSlot().
One possible work-around is to write a simple function to update the existed code when doing the unit test.