Exemplo n.º 1
0
def test_wave_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'
        ))
    ret = interface_commands.wave(tao, what='params')
Exemplo n.º 2
0
def test_ptc_com_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'
        ))
    ret = interface_commands.ptc_com(tao)
Exemplo n.º 3
0
def test_shape_pattern_list_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/tao.init_shape -noplot'
        ))
    ret = interface_commands.shape_pattern_list(tao, ix_pattern='')
Exemplo n.º 4
0
def test_plot_histogram_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/tao.init_optics_matching -noplot'
        ))
    ret = interface_commands.plot_histogram(tao, curve_name='r33.g.x')
Exemplo n.º 5
0
def test_plot_transfer_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/tao.init_optics_matching -noplot'
        ))
    ret = interface_commands.plot_transfer(tao, from_plot='r13', to_plot='r23')
Exemplo n.º 6
0
def test_lat_param_units_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'
        ))
    ret = interface_commands.lat_param_units(tao, param_name='L')
Exemplo n.º 7
0
def test_plot_lat_layout_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'
        ))
    ret = interface_commands.plot_lat_layout(tao, ix_uni='1', ix_branch='0')
Exemplo n.º 8
0
def test_datum_has_ele_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/tao.init_optics_matching -noplot'
        ))
    ret = interface_commands.datum_has_ele(tao, datum_type='twiss.end')
Exemplo n.º 9
0
def test_derivative_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/tao.init_optics_matching -noplot'
        ))
    ret = interface_commands.derivative(tao)
Exemplo n.º 10
0
def test_data_d1_array_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/tao.init_optics_matching -noplot'
        ))
    ret = interface_commands.data_d1_array(tao, ix_uni='1', d2_datum='twiss')
Exemplo n.º 11
0
def test_data_d2_array_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'
        ))
    ret = interface_commands.data_d2_array(tao, ix_uni='1')
Exemplo n.º 12
0
def test_data_d2_destroy_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'
        ))
    ret = interface_commands.data_d2_destroy(tao, d2_name='orbit')
Exemplo n.º 13
0
def test_constraints_2():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'
        ))
    ret = interface_commands.constraints(tao, who='var')
Exemplo n.º 14
0
def test_constraints_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/tao.init_optics_matching -noplot'
        ))
    ret = interface_commands.constraints(tao, who='data')
Exemplo n.º 15
0
def test_inum_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'
        ))
    ret = interface_commands.inum(tao, who='ix_universe')
Exemplo n.º 16
0
def test_bunch_params_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/csr_beam_tracking/tao.init -noplot'
        ))
    ret = interface_commands.bunch_params(tao, ele_id='end', which='model')
Exemplo n.º 17
0
def test_lat_ele_list_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'
        ))
    ret = interface_commands.lat_ele_list(tao, branch_name='1@0')
Exemplo n.º 18
0
def test_beam_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/csr_beam_tracking/tao.init -noplot'
        ))
    ret = interface_commands.beam(tao, ix_uni='1')
Exemplo n.º 19
0
def test_building_wall_list_2():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/tao.init_wall -noplot'
        ))
    ret = interface_commands.building_wall_list(tao, ix_section='1')
Exemplo n.º 20
0
def test_ele_taylor_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/tao.init_taylor -noplot'
        ))
    ret = interface_commands.ele_taylor(tao, ele_id='1@0>>34', which='model')
Exemplo n.º 21
0
def test_plot_list_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'
        ))
    ret = interface_commands.plot_list(tao, r_or_g='r')
Exemplo n.º 22
0
def test_ele_twiss_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'
        ))
    ret = interface_commands.ele_twiss(tao, ele_id='1@0>>1', which='model')
Exemplo n.º 23
0
def test_building_wall_graph_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/tao.init_wall -noplot'
        ))
    ret = interface_commands.building_wall_graph(tao, graph='floor_plan.g')
Exemplo n.º 24
0
def test_enum_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'
        ))
    ret = interface_commands.enum(tao, enum_name='tracking_method')
Exemplo n.º 25
0
def test_plot1_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/tao.init_optics_matching -noplot'
        ))
    ret = interface_commands.plot1(tao, name='beta')
Exemplo n.º 26
0
def test_floor_plan_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/tao.init_optics_matching -noplot'
        ))
    ret = interface_commands.floor_plan(tao, graph='r13.g')
Exemplo n.º 27
0
def test_shape_list_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'
        ))
    ret = interface_commands.shape_list(tao, who='floor_plan')
Exemplo n.º 28
0
def test_floor_orbit_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/tao.init_floor_orbit -noplot'
        ))
    ret = interface_commands.floor_orbit(tao, graph='r33.g')
Exemplo n.º 29
0
def test_show_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'
        ))
    ret = interface_commands.show(tao, line='-python')
Exemplo n.º 30
0
def test_var_v1_destroy_1():

    tao = Tao(
        os.path.expandvars(
            '-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'
        ))
    ret = interface_commands.var_v1_destroy(tao, v1_datum='quad_k1')