def __init__(self, **kwds): super().__init__(**kwds) fname1 = "256x256" fname2 = "256x512" self.test_actions = [testActions.LoadParameters(filename = test.halXmlFilePathAndName(fname1 + ".xml")), testActions.LoadParameters(filename = test.halXmlFilePathAndName(fname2 + ".xml")), SetParametersAction1(name_or_index = fname1), SetParametersAction1(name_or_index = fname2)]
def __init__(self, **kwds): super().__init__(**kwds) fname = "256x512" self.test_actions = [ testActions.LoadParameters( filename=test.halXmlFilePathAndName(fname + ".xml")), testActions.LoadParameters( filename=test.halXmlFilePathAndName(fname + ".xml")), ParamTest5Action(p_name=fname) ]
def __init__(self, **kwds): super().__init__(**kwds) self.test_actions = [ testActions.LoadParameters( filename=test.halXmlFilePathAndName("256x512.xml")), ParamTest1Action(p_name=1) ]
def __init__(self, **kwds): super().__init__(**kwds) directory = test.dataDirectory() filename = "movie_01" p_name = "256x256" self.test_actions = [testActions.LoadParameters(filename = test.halXmlFilePathAndName(p_name + ".xml")), TakeMovieAction4(directory = directory, length = 50, name = filename, parameters = p_name, test_mode = True)]
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_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() 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) 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) p_name = "256x256" self.test_actions = [testActions.LoadParameters(filename = test.halXmlFilePathAndName(p_name + ".xml")), TakeMovieAction7(directory = directory, length = 5, name = filename, parameters = p_name)]
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"))