classes package¶
Submodules¶
classes.DMesStage module¶
classes.DataIO module¶
- 
class classes.DataIO.DataIO[source]¶
- This class provides standarized Data IO that should be used in the procedures, scriptcontroller and DataViewer - 
static parameter_prep(Stages, Maitre, arg_string, func_parameter_list)[source]¶
- The function interpretes Input strings and prepares input paramters for functions. It also swaps MAitre/Stages keywords for the objects that are then passed to the functions. - func_parameter_list are the expected paramters of the function for which the parameters are prepared. This allows to swap in Maitre and Stages where needed. 
 - 
static writeData(openFile, data, Data_Name=”)[source]¶
- Takes data in form of nested lists or singular value and a experiment name, and writes it to a results file. The parmater is tested to be either a file handler (in which case its considered open) or a str in which case its considered to be a path to a file to which the data will be appended. 
 
- 
static 
classes.DataViewer module¶
classes.DatabaseWriter module¶
[DatabaseWriter] This module handles output of test results to a remote database. Implements the ProberControl’s OutputStream implicit interface.
classes.Dialogs module¶
Module Contains Dialogs for User Interaction
classes.E_Stage module¶
- 
class classes.E_Stage.E_Stage(mtr_list, space=None, off_angle=None)[source]¶
- Bases: - classes.xyzstage.XYZ_Stage
classes.EthernetInterface module¶
classes.Fiber module¶
Defines a thin struct to represent a “fiber array” object for the purpose of providing a handle for the Measure functions
classes.FileWriter module¶
[FileWriter] This module handles output of test results to files in local storage. Implements the ProberControl’s OutputStream implicit interface.
- 
class classes.FileWriter.FileWriter(group_designators, resultsPath=”, name_convention=’.csv’, outputMode=None)[source]¶
- Bases: - object- 
write(openFile, data, Data_Name=”)[source]¶
- Takes data in form of nested lists or singular value and a experiment name, and writes it to a results file. The parmater is tested to be either a file handler (in which case its considered open) or a str in which case its considered to be a path to a file to which the data will be appended. 
 
- 
classes.GUI module¶
classes.Global_MeasureHandler module¶
classes.Initializer module¶
classes.OptStage module¶
classes.ScriptBuilderGUI module¶
classes.ScriptController module¶
classes.SwitchHandler module¶
- 
class classes.SwitchHandler.SwitchHandler(configFile, stages, resource)[source]¶
- Bases: - object- The intention of this class if to provide a general implementation for any kind of fiber switch. The key features of the class are get_switch_state(), and switch_book object. - 
connect_devices(in_device, out_device)[source]¶
- Connect two devices together:
- in_device::out —> out_device::in
 
 
- 
classes.apt_util module¶
classes.chip_stage module¶
- 
class classes.chip_stage.ChipStage(mtr_list)[source]¶
- Bases: - object- 
set_coordinates(target_pos)[source]¶
- Move to a point in the plane - target_pos (3-tuple): (rot,g_T ,g_B) coordinates of the final point 
 
- 
classes.maitre module¶
classes.multi_serial module¶
- 
class classes.multi_serial.MultiSerial(*args, **kwrags)[source]¶
- Bases: - serial.serialwin32.Serial- This class should be used for all serial connections. It inherits the pyserial class and adds the in_buffer(), print_buffer() and clear_buffer() functions. For easy thread save communication with the serially connected devices - 
buffer= ”¶
 - 
clear_buffer()[source]¶
- Empties the current buffer and calls Serial.flushInput() Serial.flushOutput(). 
 - 
in_buffer(answer, tail_bytes=0)[source]¶
- This function updates the serial buffer and searches for patterns(answer) inside the buffer. If found the answer and the following tail_bytes are deleted from the buffer. The function should be used to check whether the slave reported a certain answer. - Parameters: - answer (string) – the pattern to search for in the buffer
- tail_bytes (integer) – number of bytes following the pattern to be deleted if pattern was found
 
 
- 
classes.object_chain module¶
classes.xyzstage module¶
- 
class classes.xyzstage.XYZ_Stage(mtr_list, off_angle=0)[source]¶
- Bases: - object- 
check_coordinates(target_pos)[source]¶
- Check whather move to a point in space is possible within actuator range - target_pos (3-tuple): (x,y,z) coordinates of the final point 
 - 
check_coordinates_2d(target_pos)[source]¶
- Check whather move to a point in space is possible within actuator range - target_pos (2-tuple): (x,y) coordinates of the final point 
 - 
set_as_zero(new_zero)[source]¶
- Change the origin - new_zero (3-tuple): (x,y,z) coordinates of the new origin 
 - 
set_coor_2d(target_pos, long=False)[source]¶
- Move to a point in the plane - target_pos (2-tuple): (x,y) coordinates of the final point 
 - 
set_coordinates(target_pos, long=False)[source]¶
- Move to a point in the plane - target_pos (3-tuple): (x,y,z) coordinates of the final point 
 - 
set_cur_as(correct_pos)[source]¶
- Changes the coordinates of the current position, esentially computing the new origin. Does NOT involve any motor movement - correct_pos (3-tuple): (x,y,z) coordinates of the “corect” position 
 - 
set_cur_as_2d(correct_pos)[source]¶
- Changes the coordinates of the current position, esentially computing the new origin. Does NOT involve any motor movement - correct_pos (2-tuple): (x,y) coordinates of the “corect” position 
 
- 
