示例#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')
示例#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)
示例#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='')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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)
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')
示例#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')