def movie_single_camera(random_pause = False):
    if random_pause:
        halTest(config_xml = "none_tcp_config_random_pause.xml",
                class_name = "TakeMovie1",
                test_module = "storm_control.test.hal.manual_tcp_tests")
    else:
        halTest(config_xml = "none_tcp_config.xml",
                class_name = "TakeMovie1",
                test_module = "storm_control.test.hal.manual_tcp_tests")
Exemple #2
0
def movie_single_camera(random_pause=False):
    if random_pause:
        halTest(config_xml="none_tcp_config_random_pause.xml",
                class_name="TakeMovie1",
                test_module="storm_control.test.hal.manual_tcp_tests")
    else:
        halTest(config_xml="none_tcp_config.xml",
                class_name="TakeMovie1",
                test_module="storm_control.test.hal.manual_tcp_tests")
def test_hal_film_1():

    # This is expected to record a movie called 'movie_01.dax'
    halTest(config_xml = "none_classic_config.xml",
            class_name = "FilmTest1",
            test_module = "storm_control.test.hal.film_tests")

    # Check that the movie is the right length.
    movie = datareader.inferReader(os.path.join(test.dataDirectory(), "movie_01.dax"))
    assert(movie.filmSize() == [512, 512, 10])
def test_hal_film_5():
    """
    Test repeated film acquisition.
    """
    halTest(config_xml = "none_classic_config.xml",
            class_name = "FilmTest4",
            test_module = "storm_control.test.hal.film_tests")

    # Check that the final movie is correct.
    movie = datareader.inferReader(os.path.join(test.dataDirectory(), "movie_04.dax"))
    assert(movie.filmSize() == [512, 512, 1])
Exemple #5
0
def test_hal_film():

    # This is expected to record a movie called 'movie_01.dax'
    halTest(config_xml="none_classic_config.xml",
            class_name="FilmTest1",
            test_module="storm_control.test.hal.film_tests")

    # Check that the movie is the right length.
    movie = datareader.inferReader(
        os.path.join(test.dataDirectory(), "movie_01.dax"))
    assert (movie.filmSize() == [512, 512, 10])
def test_hal_film_5():
    """
    Test repeated film acquisition.
    """
    halTest(config_xml="none_classic_config.xml",
            class_name="FilmTest4",
            test_module="storm_control.test.hal.film_tests")

    # Check that the final movie is correct.
    movie = datareader.inferReader(
        os.path.join(test.dataDirectory(), "movie_04.dax"))
    assert (movie.filmSize() == [512, 512, 1])
def test_hal_film_2():

    # This is expected to record several movies with names starting with 'movie_02'
    halTest(config_xml = "none_classic_config.xml",
            class_name = "FilmTest2",
            test_module = "storm_control.test.hal.film_tests")

    # Check that the movies are the right length.
    for name, size in [["movie_02.dax", [512, 512, 10]],
                       ["movie_02_average.dax", [512, 512, 1]],
                       ["movie_02_interval.dax", [508, 256, 2]],
                       ["movie_02_slice1.dax", [64, 65, 10]]]:
        movie = datareader.inferReader(os.path.join(test.dataDirectory(), name))
        assert(movie.filmSize() == size)
def test_hal_film_2():

    # This is expected to record several movies with names starting with 'movie_02'
    halTest(config_xml="none_classic_config.xml",
            class_name="FilmTest2",
            test_module="storm_control.test.hal.film_tests")

    # Check that the movies are the right length.
    for name, size in [["movie_02.dax", [512, 512, 10]],
                       ["movie_02_average.dax", [512, 512, 1]],
                       ["movie_02_interval.dax", [508, 256, 2]],
                       ["movie_02_slice1.dax", [64, 65, 10]]]:
        movie = datareader.inferReader(os.path.join(test.dataDirectory(),
                                                    name))
        assert (movie.filmSize() == size)
def test_hal_film_7():

    # This is expected to record several movies with names starting
    # with 'movie_01' and 'movie_02'.
    halTest(config_xml = "none_classic_config.xml",
            class_name = "FilmTest6",
            test_module = "storm_control.test.hal.film_tests")

    # Check that the movies are the right length.
    for name, size in [["movie_01.dax", [256, 256, 10]],
                       ["movie_01_slice1.dax", [128, 128, 10]],
                       ["movie_02.dax", [256, 256, 10]],
                       ["movie_02_slice1.dax", [128, 128, 10]]]:
        movie = datareader.inferReader(os.path.join(test.dataDirectory(), name))
        assert(movie.filmSize() == size)
Exemple #10
0
def test_hal_film_7():

    # This is expected to record several movies with names starting
    # with 'movie_01' and 'movie_02'.
    halTest(config_xml="none_classic_config.xml",
            class_name="FilmTest6",
            test_module="storm_control.test.hal.film_tests")

    # Check that the movies are the right length.
    for name, size in [["movie_01.dax", [256, 256, 10]],
                       ["movie_01_slice1.dax", [128, 128, 10]],
                       ["movie_02.dax", [256, 256, 10]],
                       ["movie_02_slice1.dax", [128, 128, 10]]]:
        movie = datareader.inferReader(os.path.join(test.dataDirectory(),
                                                    name))
        assert (movie.filmSize() == size)
def test_hal_go2():

    halTest(config_xml="none_tcp_config.xml",
            class_name="GetObjective2",
            test_module="storm_control.test.hal.tcp_tests")
Exemple #12
0
def test_hal_tcp_cfl1():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "CheckFocusLock1",
            show_gui = True,
            test_module = "storm_control.test.hal.tcp_tests")
def test_hal_tcp_sp_1():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "SetProgression1",
            show_gui = True,
            test_module = "storm_control.test.hal.tcp_tests")
Exemple #14
0
def test_hal_starts_1():
    halTest(config_xml="none_classic_config.xml",
            test_module="storm_control.hal4000.testing.testing")
Exemple #15
0
def stage_move():
    halTest(config_xml="none_tcp_config.xml",
            class_name="MoveStage1",
            test_module="storm_control.test.hal.manual_tcp_tests")
Exemple #16
0
def test_hal_gsp_1():

    halTest(config_xml="none_tcp_config.xml",
            class_name="GetStagePosition1",
            test_module="storm_control.test.hal.tcp_tests")
Exemple #17
0
def test_hal_ms_2():

    halTest(config_xml="none_tcp_config_broken_stage.xml",
            class_name="MoveStage2",
            test_module="storm_control.test.hal.tcp_tests")
def test_hal_tcp_sflm_2():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "SetFocusLockMode2",
            test_module = "storm_control.test.hal.tcp_tests")
Exemple #19
0
def test_hal_gui():
    halTest(config_xml = "none_classic_config.xml",
            class_name = "GUITest",
            test_module = "storm_control.test.hal.gui_test",
            show_gui = True)
Exemple #20
0
def test_hal_ms_1():

    halTest(config_xml="none_tcp_config.xml",
            class_name="MoveStage1",
            test_module="storm_control.test.hal.tcp_tests")
Exemple #21
0
def test_hal_gms_1():

    halTest(config_xml="none_tcp_config.xml",
            class_name="GetMosaicSettings1",
            test_module="storm_control.test.hal.tcp_tests")
def test_hal_tcp_sflm1():

    halTest(config_xml="none_tcp_config.xml",
            class_name="SetFocusLockMode1",
            show_gui=True,
            test_module="storm_control.test.hal.tcp_tests")
Exemple #23
0
def test_hal_params():
    halTest(config_xml="none_classic_config.xml",
            class_name="ParamTest3",
            test_module="storm_control.test.hal.param_tests")
def test_hal_tcp_sflm_2():

    halTest(config_xml="none_tcp_config.xml",
            class_name="SetFocusLockMode2",
            test_module="storm_control.test.hal.tcp_tests")
def test_hal_film_3():
    halTest(config_xml = "none_classic_config.xml",
            class_name = "FilmTest3",
            test_module = "storm_control.test.hal.film_tests")
def test_hal_tcp_slt1():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "SetLockTarget1",
            show_gui = True,
            test_module = "storm_control.test.hal.tcp_tests")
def test_hal_tcp_tm_11():

    halTest(config_xml = "none_tcp_config_spot_counter.xml",
            class_name = "TakeMovie11",
            test_module = "storm_control.test.hal.tcp_tests")
def test_hal_lock_config1():
    halTest(config_xml="none_config_lock_check.xml",
            class_name="LockConfigTest1",
            test_module="storm_control.test.hal.config_tests")
Exemple #29
0
def test_hal_ms2():

    halTest(config_xml = "none_tcp_config_broken_stage.xml",
            class_name = "MoveStage2",
            test_module = "storm_control.test.hal.tcp_tests")
Exemple #30
0
def dave_sequence():
    halTest(config_xml="none_tcp_config.xml",
            class_name="StandardDaveSequence1",
            test_module="storm_control.test.hal.manual_tcp_tests")
def test_hal_lock_config1():
    halTest(config_xml = "none_config_lock_check.xml",
            class_name = "LockConfigTest1",
            test_module = "storm_control.test.hal.config_tests")
Exemple #32
0
def test_hal_tcp_sp_4():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "SetProgression4",
            test_module = "storm_control.test.hal.tcp_tests")
def test_hal_ms_1():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "MoveStage1",
            test_module = "storm_control.test.hal.tcp_tests")
Exemple #34
0
def test_hal_starts_4():
    halTest(config_xml="none_detached_dual_config.xml",
            test_module="storm_control.hal4000.testing.testing")
Exemple #35
0
def test_hal_tcp_sp4():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "SetParameters4",
            test_module = "storm_control.test.hal.tcp_tests")
Exemple #36
0
def test_hal_go1():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "GetObjective1",
            test_module = "storm_control.test.hal.tcp_tests")
Exemple #37
0
def test_hal_tcp_cfl3():

    halTest(config_xml="none_tcp_config.xml",
            class_name="CheckFocusLock3",
            show_gui=True,
            test_module="storm_control.test.hal.tcp_tests")
Exemple #38
0
def test_hal_gsp2():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "GetStagePosition2",
            test_module = "storm_control.test.hal.tcp_tests")
def test_hal_tcp_tm4():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "TakeMovie4",
            test_module = "storm_control.test.hal.tcp_tests")
Exemple #40
0
def test_hal_tcp_nsm1():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "NoSuchMessage1",
            test_module = "storm_control.test.hal.tcp_tests")
Exemple #41
0
def test_hal_tcp_tm_11():

    halTest(config_xml="none_tcp_config_spot_counter.xml",
            class_name="TakeMovie11",
            test_module="storm_control.test.hal.tcp_tests")
Exemple #42
0
def test_hal_film_3():
    halTest(config_xml="none_classic_config.xml",
            class_name="FilmTest3",
            test_module="storm_control.test.hal.film_tests")
def test_hal_tcp_cfl_5():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "CheckFocusLock5",
            test_module = "storm_control.test.hal.tcp_tests")
def test_hal_params_1():
    halTest(config_xml = "none_classic_config.xml",
            class_name = "ParamTest1",
            test_module = "storm_control.test.hal.param_tests")
Exemple #45
0
def test_hal_gms1():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "GetMosaicSettings1",
            test_module = "storm_control.test.hal.tcp_tests")
Exemple #46
0
def test_hal_tcp_fs3():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "FindSum3",
            show_gui = True,
            test_module = "storm_control.test.hal.tcp_tests")
Exemple #47
0
def test_hal_tcp_slt1():

    halTest(config_xml="none_tcp_config.xml",
            class_name="SetLockTarget1",
            show_gui=True,
            test_module="storm_control.test.hal.tcp_tests")
Exemple #48
0
def test_hal_tcp_sp3():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "SetParameters3",
            test_module = "storm_control.test.hal.tcp_tests")
def test_hal_tcp_cfl5():

    halTest(config_xml="none_tcp_config.xml",
            class_name="CheckFocusLock5",
            test_module="storm_control.test.hal.tcp_tests")
Exemple #50
0
def test_hal_tcp_fs4():

    halTest(config_xml="none_tcp_config.xml",
            class_name="FindSum4",
            show_gui=True,
            test_module="storm_control.test.hal.tcp_tests")
Exemple #51
0
def test_hal_starts():
    halTest(config_xml = "none_detached_dual_config.xml",
            test_module = "storm_control.hal4000.testing.testing")
Exemple #52
0
def test_hal_tcp_tm3():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "TakeMovie3",
            test_module = "storm_control.test.hal.tcp_tests")
def stage_move():
    halTest(config_xml = "none_tcp_config.xml",
            class_name = "MoveStage1",
            test_module = "storm_control.test.hal.manual_tcp_tests")
def test_hal_tcp_sp1():

    halTest(config_xml="none_tcp_config.xml",
            class_name="SetProgression1",
            show_gui=True,
            test_module="storm_control.test.hal.tcp_tests")
def dave_sequence():
    halTest(config_xml = "none_tcp_config.xml",
            class_name = "StandardDaveSequence1",
            test_module = "storm_control.test.hal.manual_tcp_tests")
def test_hal_tcp_sflm_11():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "SetFocusLockMode1",
            show_gui = True,
            test_module = "storm_control.test.hal.tcp_tests")
Exemple #57
0
def test_hal_starts():
    halTest(config_xml = "none_classic_config.xml",
            test_module = "storm_control.hal4000.testing.testing")