예제 #1
0
    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)]
예제 #2
0
    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)
        ]
예제 #3
0
    def __init__(self, **kwds):
        super().__init__(**kwds)

        self.test_actions = [
            testActions.LoadParameters(
                filename=test.halXmlFilePathAndName("256x512.xml")),
            ParamTest1Action(p_name=1)
        ]
예제 #4
0
    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)]
예제 #5
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)]
예제 #6
0
    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)]
예제 #7
0
    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)]
예제 #8
0
    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)]
예제 #9
0
    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"))