classes package

Submodules

classes.DMesStage module

class classes.DMesStage.DMesStage(mtr_list)[source]

Bases: object

whoAmI()[source]
Returns:type of instrument

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 get_test_data(path, test_name)[source]
static get_test_names(path)[source]
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 usage_prep(usage_list)[source]
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.

classes.DataViewer module

class classes.DataViewer.DataViewer(master=None)[source]

Bases: Tkinter.Frame

BackLoad()[source]
ClearCanvas()[source]
FileBrowse()[source]
FileLoad()[source]
NameLoad()[source]
NextLoad()[source]
TestNameBoxChange(value)[source]
createWidgets()[source]
update_canvas(path, test_name, clear=True)[source]

classes.DatabaseWriter module

[DatabaseWriter] This module handles output of test results to a remote database. Implements the ProberControl’s OutputStream implicit interface.

class classes.DatabaseWriter.DatabaseWriter[source]

Bases: object

getOutTargets(entry)[source]
write(openFile, data, Data_Name=”)[source]

classes.Dialogs module

Module Contains Dialogs for User Interaction

class classes.Dialogs.Search_and_Replace(parent, textWidget)[source]

Bases: Tkinter.Toplevel

ReplaceEntryVar = None

This class configures and populates the toplevel window. top is the toplevel containing window.

exit()[source]
replaceAll()[source]
replaceNext()[source]
searchAll()[source]
searchNext()[source]

classes.E_Stage module

class classes.E_Stage.E_Stage(mtr_list, space=None, off_angle=None)[source]

Bases: classes.xyzstage.XYZ_Stage

connect()[source]

Moves z position of probe to the Low Z value

disconnect()[source]

Moves z position of probe to the High Z value.

jumpDownToNext(pitch)[source]

Experimental pitch: spacing of pads in mm

setHighZ()[source]

Set the height at which the probe will be from the chip while disconnected

setLowZ(dis_height=0.1)[source]

Set the height at which the probe is touching the chip

set_whoAmI(name)[source]
whoAmI()[source]

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

class classes.Fiber.Fiber(fiber_id)[source]

Bases: object

whoAmI()[source]

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

getOutTargets(entry)[source]

get an open file handle from measurement entry struct

getRelatedFiles(script, key, entry)[source]
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

class classes.OptStage.OptStage(mtr_list, space=None, off_angle=None)[source]

Bases: classes.xyzstage.XYZ_Stage

This class models an optical probe stage.

set_whoAmI(name)[source]
whoAmI()[source]

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
get_switch_state()[source]

Queries all current connections.

Returns:String of all connections between devices
whoAmI()[source]
classes.SwitchHandler.sdebug(msg)[source]

classes.apt_util module

classes.apt_util.c2r(COM_port, rate=115200)[source]

returns a serial object for the spec. port with the APT configuration

classes.chip_stage module

class classes.chip_stage.ChipStage(mtr_list)[source]

Bases: object

check_coordinates(target_pos)[source]
close()[source]

Closes the underlying motors

get_coordinates()[source]
get_rot()[source]
home()[source]

Sets all chip stage motors to home

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

set_rot(target_pos)[source]

Rotate the chip stage

set_stepsize(stepsize)[source]

Updates the stepsize used in step() function

set_whoAmI(name)[source]
step(direction)[source]
  • Move Stage in either direction by one step
  • Step Size defined in set_stepsize()
  • direction expected to be char: L(CW),R(CCW)
whoAmI()[source]
classes.chip_stage.t_add(tuple1, tuple2)[source]
classes.chip_stage.t_sub(tuple1, tuple2)[source]

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
print_buffer()[source]

Prints the current buffer. The buffer is printed is interpreted as hex numbers and send to print

classes.object_chain module

classes.plotter module

class classes.plotter.ProcessPlotter[source]

Bases: object

terminate()[source]
update_fig()[source]
class classes.plotter.Singleton(u_class)[source]

Bases: object

Singleton paradigm implementation

class classes.plotter.close_handler(shelled_handle)[source]

Bases: object

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

close()[source]

Closes the underlying motors

get_coor_2d()[source]

Returns the current position of the XYZ-Stage relative to the set origin

get_coordinates()[source]

Returns the current position of the XYZ-Stage relative to the set origin

get_real_coordinates()[source]

Returns the actual position of the XYZ-Stage (relative to homing)

home()[source]

Sets all of step-motors to home position

leveled()[source]

Check if virtual leveling parameters have been set

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

set_level(ang_x, ang_y)[source]

set variables for virtual leveling Note: the axes are relative to the stage

ang_x (float): angle in x-axis ang_y (float): anfle in y-axis

set_stepsize(stepsize)[source]

Updates the stepsize used in step() function

step(direction)[source]
  • Move Stage in either direction by one step
  • Step Size defined in set_stepsize()
  • direction expected to be char: U(p),D(own) L(eft),R(ight) F(orward),B(ackward)
classes.xyzstage.t_add(tuple1, tuple2)[source]
classes.xyzstage.t_sub(tuple1, tuple2)[source]

Module contents