Пример #1
0
def _check_bkops(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    device = Device(test_conf['device_id'])
    device.check_bkops()
Пример #2
0
def _check_hpb_debug_mode(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    device = Device(test_conf['device_id'])
    device.check_hpb_debug_mode()
Пример #3
0
    def __init__(self,
                 elog=None,
                 cspad_x = sxrmotors.user_mmn_10,
		 pi_x = sxrmotors.user_mmn_09,
		 yag_zoom = sxrmotors.user_dumb_32,
                 sam_x = sxrmotors.user_mmn_08,
                 att = sxrmotors.user_mmn_01,
                 yag_focus = sxrmotors.user_dumb_31,
		 yag_x = sxrmotors.user_mmn_02,
		 yag_y = sxrmotors.user_mmn_03,
                 objName = "IH_sikorski_1_2013",
                 presetsfile = "/reg/neh/operator/sxropr/sxr_python/modules/experiments/presets/IH_sikorski_10_2013_presets.py"):
        Device.__init__(self,objName,pvBase,presetsfile)
        self.elog = elog
        self.sam_x = sam_x
        self.att = att
	self.pi_x = pi_x
        self.cspad_x = cspad_x
	self.yag_zoom = yag_zoom
	self.yag_focus = yag_focus
	self.yag_x = yag_x
	self.yag_y = yag_y

        self.motors = {
            "sam_x": self.sam_x,
            "att": self.att,
            "yag_x": yag_x,
            "yag_y": yag_y,
            "cspad_x": self.cspad_x,
	    "pi_x": self.pi_x,
	    "yag_zoom": self.yag_zoom,
            "yag_focus": self.yag_focus
    
	}
        pass
Пример #4
0
def _get_wb_avail_buf(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    device = Device(test_conf['device_id'])
    device.get_wb_avail_buf()
Пример #5
0
def _scan_device(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    device = Device(test_conf['device_id'])
    device.scan_device(test_conf['mongo_json'])
Пример #6
0
def _root_device(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    device = Device(test_conf['device_id'])
    device.root_device()
Пример #7
0
def _get_chip_manufacturer(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    device = Device(test_conf['device_id'])
    device.get_chip_manufacturer()
Пример #8
0
def _get_chip_capacity(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    device = Device(test_conf['device_id'])
    device.get_chip_capacity()
Пример #9
0
def _set_screen(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    device = Device(test_conf['device_id'])
    device.set_screen()
Пример #10
0
def _get_ee_bkops_status(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    device = Device(test_conf['device_id'])
    device.get_ee_bkops_status()
Пример #11
0
def _check_ffu(*args, **kwargs):
    """
    use for ffu status and fw revisoin check in ffu test
    see usage in main method
    """
    device = Device(test_conf['device_id'])
    device.check_ffu()
Пример #12
0
def _clean_fio_file(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    device = Device(test_conf['device_id'])
    device.clean_test_file()
Пример #13
0
def _enable_mtp(*args, **kwargs):
    """
    See usage in main method

    :return: None
    """
    device = Device(test_conf['device_id'])
    device.switch_mtp(exp_mtp=True)
Пример #14
0
def _powerboard_action(*args, **kwargs):
    """
    :return: None
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.powerboard_action(*args, **kwargs)
Пример #15
0
def _statistic_with_chart(*args, **kwargs):
    """
    for fid background process get read or write data and chart
    see usage in main method
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.statistic_with_chart(*args, **kwargs)
Пример #16
0
def _get_flush_time(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.get_flush_time(*args, **kwargs)
Пример #17
0
def _file_for_assistant_test(*args, **kwargs):
    """
    write fio file for assistant test
    See usage in main method
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.file_for_assistant_test(*args, **kwargs)
Пример #18
0
def _verify_wb_function(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.verify_wb_function(*args, **kwargs)
Пример #19
0
def _pull_avail_buf(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.pull_avail_buf(*args, **kwargs)
Пример #20
0
def _enable_hibern(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.enable_hibern(*args, **kwargs)
Пример #21
0
def _push_bin_action(*args, **kwargs):
    """
    for FFU Tc push fw bin to /data
    See usage in main method
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.push_bin_action(*args, **kwargs)
Пример #22
0
def _wb_avail_buf_restore_loop_check_no_enough(*args, **kwargs):
    """
    check wb_avail_buf make until 100%, restore enough
    See usage in main method
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.wb_avail_buf_restore_loop_check_no_enough(*args, **kwargs)
Пример #23
0
def _reset_hit_count(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.reset_hit_count(*args, **kwargs)
Пример #24
0
def _get_data_space_and_cur_buf(*args, **kwargs):
    """
    use for performance_data_space_decrease_check
    see usage in main method
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.get_data_space_and_cur_buf(*args, **kwargs)
Пример #25
0
def _check_bkop(*args, **kwargs):
    """
    check bkop status
    see usage in main method
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.check_bkop(*args, **kwargs)
Пример #26
0
def _switch_mtp(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.switch_mtp(*args, **kwargs)
Пример #27
0
def _wb_avail_buf_restore_loop_check(*args, **kwargs):
    """
    check wb_avail_buf make less 90% ,not restore enough
    :return: None
    See usage in main method
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.wb_avail_buf_restore_loop_check(*args, **kwargs)
Пример #28
0
def _get_fio_pid(*args, **kwargs):
    """
    get fio pid
    See usage in main method
    """

    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.get_fio_pid(*args, **kwargs)
Пример #29
0
def _auto_calculate_loops(*args, **kwargs):
    """
    :param args:
    :param kwargs:
    :return:
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.auto_calculate_loops(*args, **kwargs)
Пример #30
0
def initiate_device():
    """
    Initiate device, like set screen, enable mtp

    :return: None
    """
    tc_logger.info('==>Start to initiate devices')
    device = Device(test_conf['device_id'])
    device.root_device()
    device.verify_hdmi_connection()
    device.set_screen()
    device.switch_mtp(True)