When Francesco was trying to lock the OMC this morning, we realized that the python scripts stored under /virgoDev/Automation/scripts/DET were not working any more.
The problems were related to the swap from python2 to python3 executables.
In order to make the DET scripts compatible with the python3 environment, we had to perform this kind of corrections:
- The print() function now must use parenthesis.
- "ConfigParser" has become "configparser"
- python3 strictly enforces that string and bytes are completely seperate data types.
The last bullet lead to some troubles in particular with the script SDB1_alignment.py, where strings needed to be converted to bytes which are used by telnetlib.
The following scripts have been updated : OMC_init.py, SDB1_alignment.py, action_QPD.py, PD_offsets.py
OMC_init.py was tested at least partially when locking the OMC.
action_QPD.py and PD_offsets.py have not been tested at all.
The execution of SDB1_alignment.py has been tested, but it remains to be tested by sending commands to a picomotor.
1 comment
During the shift of thursday afternoon, we took the oportunity of an unlock to test the SDB1_alignment.py script by acting on the motorized counter weight "BENCH_TX". The commands were successfully sent, as proven by the fact that the motion of the weight was impacting the correction applied to the TX marionetta actuator.