コード例 #1
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")
コード例 #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")
コード例 #3
0
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])
コード例 #4
0
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])
コード例 #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])
コード例 #6
0
ファイル: test_hal_film.py プロジェクト: BogdanBintu/MERFISH5
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])
コード例 #7
0
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)
コード例 #8
0
ファイル: test_hal_film.py プロジェクト: BogdanBintu/MERFISH5
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)
コード例 #9
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)
コード例 #10
0
ファイル: test_hal_film.py プロジェクト: BogdanBintu/MERFISH5
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)
コード例 #11
0
def test_hal_go2():

    halTest(config_xml="none_tcp_config.xml",
            class_name="GetObjective2",
            test_module="storm_control.test.hal.tcp_tests")
コード例 #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")
コード例 #13
0
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")
コード例 #14
0
ファイル: test_hal_starts.py プロジェクト: BoettigerLab/Hal2
def test_hal_starts_1():
    halTest(config_xml="none_classic_config.xml",
            test_module="storm_control.hal4000.testing.testing")
コード例 #15
0
def stage_move():
    halTest(config_xml="none_tcp_config.xml",
            class_name="MoveStage1",
            test_module="storm_control.test.hal.manual_tcp_tests")
コード例 #16
0
ファイル: test_hal_tcp_gsp.py プロジェクト: BoettigerLab/Hal2
def test_hal_gsp_1():

    halTest(config_xml="none_tcp_config.xml",
            class_name="GetStagePosition1",
            test_module="storm_control.test.hal.tcp_tests")
コード例 #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")
コード例 #18
0
def test_hal_tcp_sflm_2():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "SetFocusLockMode2",
            test_module = "storm_control.test.hal.tcp_tests")
コード例 #19
0
ファイル: test_hal_gui.py プロジェクト: BoettigerLab/Hal2
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)
コード例 #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")
コード例 #21
0
ファイル: test_hal_tcp_gsm.py プロジェクト: BoettigerLab/Hal2
def test_hal_gms_1():

    halTest(config_xml="none_tcp_config.xml",
            class_name="GetMosaicSettings1",
            test_module="storm_control.test.hal.tcp_tests")
コード例 #22
0
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")
コード例 #23
0
def test_hal_params():
    halTest(config_xml="none_classic_config.xml",
            class_name="ParamTest3",
            test_module="storm_control.test.hal.param_tests")
コード例 #24
0
def test_hal_tcp_sflm_2():

    halTest(config_xml="none_tcp_config.xml",
            class_name="SetFocusLockMode2",
            test_module="storm_control.test.hal.tcp_tests")
コード例 #25
0
def test_hal_film_3():
    halTest(config_xml = "none_classic_config.xml",
            class_name = "FilmTest3",
            test_module = "storm_control.test.hal.film_tests")
コード例 #26
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")
コード例 #27
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")
コード例 #28
0
def test_hal_lock_config1():
    halTest(config_xml="none_config_lock_check.xml",
            class_name="LockConfigTest1",
            test_module="storm_control.test.hal.config_tests")
コード例 #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")
コード例 #30
0
def dave_sequence():
    halTest(config_xml="none_tcp_config.xml",
            class_name="StandardDaveSequence1",
            test_module="storm_control.test.hal.manual_tcp_tests")
コード例 #31
0
def test_hal_lock_config1():
    halTest(config_xml = "none_config_lock_check.xml",
            class_name = "LockConfigTest1",
            test_module = "storm_control.test.hal.config_tests")
コード例 #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")
コード例 #33
0
def test_hal_ms_1():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "MoveStage1",
            test_module = "storm_control.test.hal.tcp_tests")
コード例 #34
0
ファイル: test_hal_starts.py プロジェクト: BoettigerLab/Hal2
def test_hal_starts_4():
    halTest(config_xml="none_detached_dual_config.xml",
            test_module="storm_control.hal4000.testing.testing")
コード例 #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")
コード例 #36
0
def test_hal_go1():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "GetObjective1",
            test_module = "storm_control.test.hal.tcp_tests")
コード例 #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")
コード例 #38
0
def test_hal_gsp2():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "GetStagePosition2",
            test_module = "storm_control.test.hal.tcp_tests")
コード例 #39
0
def test_hal_tcp_tm4():

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "TakeMovie4",
            test_module = "storm_control.test.hal.tcp_tests")
コード例 #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")
コード例 #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")
コード例 #42
0
ファイル: test_hal_film.py プロジェクト: BogdanBintu/MERFISH5
def test_hal_film_3():
    halTest(config_xml="none_classic_config.xml",
            class_name="FilmTest3",
            test_module="storm_control.test.hal.film_tests")
コード例 #43
0
def test_hal_tcp_cfl_5():

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

    halTest(config_xml = "none_tcp_config.xml",
            class_name = "GetMosaicSettings1",
            test_module = "storm_control.test.hal.tcp_tests")
コード例 #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")
コード例 #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")
コード例 #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")
コード例 #49
0
def test_hal_tcp_cfl5():

    halTest(config_xml="none_tcp_config.xml",
            class_name="CheckFocusLock5",
            test_module="storm_control.test.hal.tcp_tests")
コード例 #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")
コード例 #51
0
def test_hal_starts():
    halTest(config_xml = "none_detached_dual_config.xml",
            test_module = "storm_control.hal4000.testing.testing")
コード例 #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")
コード例 #53
0
def stage_move():
    halTest(config_xml = "none_tcp_config.xml",
            class_name = "MoveStage1",
            test_module = "storm_control.test.hal.manual_tcp_tests")
コード例 #54
0
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")
コード例 #55
0
def dave_sequence():
    halTest(config_xml = "none_tcp_config.xml",
            class_name = "StandardDaveSequence1",
            test_module = "storm_control.test.hal.manual_tcp_tests")
コード例 #56
0
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")
コード例 #57
0
def test_hal_starts():
    halTest(config_xml = "none_classic_config.xml",
            test_module = "storm_control.hal4000.testing.testing")