def __init__(self, **kwds): super().__init__(**kwds) self.test_actions = [testActions.ShowGUIControl(control_name = "focus lock"), testActions.Timer(100), SetFocusLockModeAction1(mode_name = "Always On", locked = True), testActions.Timer(2000)]
def __init__(self, **kwds): super().__init__(**kwds) self.test_actions = [ testActions.ShowGUIControl(control_name="focus lock"), testActions.Timer(100), SetFocusLockModeAction1(mode_name="Always On", locked=True), testActions.Timer(100), CheckFocusLockAction1(focus_scan=False, num_focus_checks=6) ]
def __init__(self, **kwds): super().__init__(**kwds) self.test_actions = [testActions.ShowGUIControl(control_name = "focus lock"), testActions.Timer(100), SetFocusLockModeAction1(mode_name = "Always On", locked = True), testActionsTCP.MoveStage(x = -6, y = 0), testActions.Timer(200), CheckFocusLockAction2(focus_scan = True, num_focus_checks = 6, scan_range = 1)]
def __init__(self, **kwds): super().__init__(**kwds) self.test_actions = [SetProgressionAction1(filename = test.halXmlFilePathAndName("prog_test.power"), prog_type = "file"), testActions.Timer(500), SetProgressionAction1(prog_type = "lockedout"), testActions.Timer(500), TakeMovieAction1(directory = test.dataDirectory(), length = 5, name = "movie_01"), testActions.Timer(500)]
def __init__(self, **kwds): super().__init__(**kwds) self.test_actions = [ testActions.ShowGUIControl(control_name="focus lock"), testActions.Timer(100), SetFocusLockModeAction1(mode_name="Always On", locked=True), testActionsTCP.MoveStage(x=-40.5, y=0), testActions.Timer(200), FindSumAction1(min_sum=100), testActions.Timer(400), CheckFocusLockAction1(focus_scan=False, num_focus_checks=6) ]
def __init__(self, **kwds): super().__init__(**kwds) directory = test.dataDirectory() filename = "movie_02" # Remove old movie (if any). fullname = os.path.join(directory, filename + ".dax") if os.path.exists(fullname): os.remove(fullname) self.test_actions = [testActions.SetDirectory(directory = directory), testActions.LoadParameters(filename = test.halXmlFilePathAndName("feed_examples.xml")), testActions.SetParameters(p_name = 0), testActions.Timer(timeout = 1000), testActions.Record(filename = filename), testActions.Timer(timeout = 2000)]
def __init__(self, **kwds): super().__init__(**kwds) self.test_actions = [ SetProgressionAction1( filename=test.halXmlFilePathAndName("prog_test.power"), prog_type="file"), testActions.Timer(1000) ]
def __init__(self, **kwds): super().__init__(**kwds) # # We have to pause for 500ms so that the stage move watchdog # timer has a chance to go off. # x = 10.0 y = 10.0 self.test_actions = [testActionsTCP.MoveStage(x = x, y = y), testActions.Timer(500), GetStagePositionAction1(x = x, y = y)]
def __init__(self, **kwds): super().__init__(**kwds) # # We have to pause for 500ms so that the stage # a chance to update it's position. # x = 10.0 y = 10.0 self.test_actions = [testActionsTCP.MoveStage(x = x, y = y), testActions.Timer(500), GetStagePositionAction1(x = x, y = y), MoveStageAction1(test_mode = True, x = 0.0, y = 0.0)]
def __init__(self, **kwds): super().__init__(**kwds) directory = test.dataDirectory() filenames = ["movie_01", "movie_02"] # Remove old movies (if any). for elt in filenames: fullname = os.path.join(directory, elt + ".dax") if os.path.exists(fullname): os.remove(fullname) self.test_actions = [testActions.SetDirectory(directory = directory), testActions.LoadParameters(filename = test.halXmlFilePathAndName("feed_test.xml")), testActions.SetParameters(p_name = 0), testActions.Timer(timeout = 200), testActions.Record(filename = filenames[0]), testActions.Timer(timeout = 200), testActions.LoadParameters(filename = os.path.join(test.dataDirectory(), filenames[0] + ".xml")), testActions.SetParameters(p_name = 0), testActions.Timer(timeout = 200), testActions.Record(filename = filenames[1]), testActions.Timer(timeout = 200)]
def __init__(self, **kwds): super().__init__(**kwds) directory = test.dataDirectory() filename = "movie_01" # Remove old movie (if any). fullname = os.path.join(directory, filename + ".dax") if os.path.exists(fullname): os.remove(fullname) os.remove(os.path.join(directory, filename + ".xml")) self.test_actions = [testActions.SetDirectory(directory = directory), testActions.ShowGUIControl(control_name = "focus lock"), testActions.Timer(100), testActions.Record(filename = filename, length = 10)]
def __init__(self, **kwds): super().__init__(**kwds) directory = test.dataDirectory() filename = "movie_03" # Remove old movie (if any). fullname = os.path.join(directory, filename + ".dax") if os.path.exists(fullname): os.remove(fullname) os.remove(os.path.join(directory, filename + ".xml")) self.test_actions = [testActions.SetDirectory(directory = directory), testActions.Record(filename = filename), testActions.LoadParameters(os.path.join(directory, "movie_03.xml")), testActions.SetParameters(p_name = 0), testActions.Timer(timeout = 500)]
def __init__(self, **kwds): super().__init__(**kwds) directory = test.dataDirectory() self.reps = 1 # Initial setup. # # Lock focus. self.test_actions.append( tcpTests.SetFocusLockModeAction1(mode_name="Always On", locked=True)) # Load parameters. self.test_actions.append( testActions.LoadParameters( filename=test.halXmlFilePathAndName("256x256.xml"))) self.test_actions.append( testActions.LoadParameters( filename=test.halXmlFilePathAndName("256x512.xml"))) # Turn off live mode. self.test_actions.append(testActions.SetLiveMode(live_mode=False)) # Pause a second so that setup completes. self.test_actions.append(testActions.Timer(1000)) # Add loop parameters. for i in range(10): ## Position 0 # Move stage. self.test_actions.append(testActionsTCP.MoveStage(x=0.0, y=0.0)) # Check focus. self.test_actions.append( testActionsTCP.CheckFocusLock(focus_scan=False, num_focus_checks=30)) # Set parameters. self.test_actions.append( tcpTests.SetParametersAction1(name_or_index="256x256")) # Take Movie. self.test_actions.append( StandardDaveSequenceTakeMovieAction1(directory=directory, length=5, name="movie_01")) # Remove movie. self.test_actions.append( testActions.RemoveFile(directory=directory, name="movie_01.inf")) self.test_actions.append( testActions.RemoveFile(directory=directory, name="movie_01.dax")) ## Position 1 # Move stage. self.test_actions.append(testActionsTCP.MoveStage(x=10.0, y=0.0)) # Check focus. self.test_actions.append( testActionsTCP.CheckFocusLock(focus_scan=False, num_focus_checks=30)) # Set parameters. self.test_actions.append( tcpTests.SetParametersAction1(name_or_index="256x512")) # Take Movie. self.test_actions.append( StandardDaveSequenceTakeMovieAction2(directory=directory, length=5, name="movie_02")) # Remove movie. self.test_actions.append( testActions.RemoveFile(directory=directory, name="movie_02.inf")) self.test_actions.append( testActions.RemoveFile(directory=directory, name="movie_02.dax"))
def __init__(self, **kwds): super().__init__(**kwds) self.test_actions = [testActions.Timer(timeout=1000)]