test_scan
¶
Tests for scan macros
Functions
-
parsing_log_output
(log_output)[source]¶ 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
ANscanTest¶
-
class
ANscanTest
[source]¶ Not yet implemented. Once implemented it will test anscan. See
RunStopMacroTestCase
for requirements.
DNscanTest¶
-
class
DNscanTest
[source]¶ Not yet implemented. Once implemented it will test the macro dnscanc. See
ANscanTest
for requirements.
DNscancTest¶
-
class
DNscancTest
[source]¶ Not yet implemented. Once implemented it will test the macro dnscanc. See
DNscanTest
for requirements.
AscanTest¶
-
class
AscanTest
(*a, **kw)[source]¶ 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.-
macro_name
= 'ascan'¶
-
macro_runs
(macro_params=None, wait_timeout=30.0)[source]¶ 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.
-
DscanTest¶
-
class
DscanTest
(*a, **kw)[source]¶ Test of dscan macro. It verifies that macro dscan can be executed and stoped. See
DNscanTest
for requirements.-
macro_name
= 'dscan'¶
-
MeshTest¶
-
class
MeshTest
(*a, **kw)[source]¶ Test of mesh macro. It verifies that macro mesh can be executed and stoped. See
RunStopMacroTestCase
for requirements.-
macro_name
= 'mesh'¶
-