Tests for scan macros
Functions
A helper method to parse log output of an executed scan macro. :params log_output: (seq<str>) Result of macro_executor.getLog(‘output’) (see description in BaseMacroExecutor).
Returns: | (seq<number>) The numeric data of a scan. |
---|
Classes
Not yet implemented. Once implemented it will test anscan. See RunStopMacroTestCase for requirements.
Not yet implemented. Once implemented it will test the macro dnscanc. See ANscanTest for requirements.
Not yet implemented. Once implemented it will test the macro dnscanc. See DNscanTest for requirements.
Test of ascan macro. See ANscanTest for requirements. It verifies that macro ascan can be executed and stoped and tests the output of the ascan using data from log system and macro data.
Reimplementation of macro_runs method for ascan macro. It verifies using double checking, with log output and data from the macro:
- The motor initial and final positions of the scan are the ones given as input.
- Intervals in terms of motor position between one point and the next one are equidistant.
Testing ascan with macro_runs(macro_params=[‘motor_not_defined’, ‘0’, ‘5’, ‘4’, ‘.1’], wait_timeout=30.0)
Testing ascan with macro_stops(macro_params=[‘motor_not_defined’, ‘0’, ‘5’, ‘3’, ‘.1’])
Test of dscan macro. It verifies that macro dscan can be executed and stoped. See DNscanTest for requirements.
Testing dscan with macro_runs(macro_params=[‘motor_not_defined’, ‘-1’, ‘1’, ‘2’, ‘.1’], wait_timeout=30)
Testing dscan with macro_stops(macro_params=[‘motor_not_defined’, ‘1’, ‘-1’, ‘3’, ‘.1’])
Test of mesh macro. It verifies that macro mesh can be executed and stoped. See RunStopMacroTestCase for requirements.
Testing mesh with macro_runs(macro_params=[‘motor_not_defined’, ‘-2’, ‘2’, ‘3’, ‘motor_not_defined’, ‘-2’, ‘-1’, ‘2’, ‘.1’], wait_timeout=30)
Testing mesh with macro_runs(macro_params=[‘motor_not_defined’, ‘-1’, ‘1’, ‘3’, ‘motor_not_defined’, ‘-1’, ‘0’, ‘2’, ‘.1’], wait_timeout=30)
Testing mesh with macro_stops(macro_params=[‘motor_not_defined’, ‘-3’, ‘0’, ‘3’, ‘motor_not_defined’, ‘-3’, ‘0’, ‘2’, ‘.1’], wait_timeout=30)