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