当前位置: 首页>>代码示例>>Python>>正文


Python BatchJobPedestals.command_for_peds_scan方法代码示例

本文整理汇总了Python中BatchJobPedestals.command_for_peds_scan方法的典型用法代码示例。如果您正苦于以下问题:Python BatchJobPedestals.command_for_peds_scan方法的具体用法?Python BatchJobPedestals.command_for_peds_scan怎么用?Python BatchJobPedestals.command_for_peds_scan使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BatchJobPedestals的用法示例。


在下文中一共展示了BatchJobPedestals.command_for_peds_scan方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: CommandLineCalib

# 需要导入模块: import BatchJobPedestals [as 别名]
# 或者: from BatchJobPedestals import command_for_peds_scan [as 别名]

#.........这里部分代码省略.........
        + '\n     workdir       : %s' % self.workdir\
        + '\n     calibdir      : %s' % self.calibdir\
        + '\n     det_name      : %s' % self.det_name\
        + '\n     queue         : %s' % self.queue\
        + '\n     num_events    : %d' % self.num_events\
        + '\n     skip_events   : %d' % self.skip_events\
        + '\n     thr_rms       : %f' % self.thr_rms\
        + '\n     process       : %s' % self.process\
        + '\n     deploy        : %s' % self.deploy\
        + '\n     print_bits    : %s' % self.print_bits
        #+ '\nself.logfile       : ' % self.logfile     

        self.log(msg,1)

#------------------------------

    def print_command_line_pars(self, args, opts) :

        msg = '\nprint_command_line_pars(...):\n  args: %s\n  opts: %s' % (args,opts)
        self.log(msg,1)

#------------------------------

    def proc_dark_run_interactively(self) :

        if self.process :
            self.log(self.sep + 'Begin dark run data processing interactively',1)
        else :
            self.log(self.sep + '\nWARNING: FILE PROCESSING OPTION IS TURNED OFF...'\
                  + '\nAdd "-P" option in the command line to process files\n',4) 
            return

        self.bjpeds = BatchJobPedestals(self.runnum)
        self.bjpeds.command_for_peds_scan()

        self.print_list_of_types_and_sources_from_xtc()

        if not self.bjpeds.command_for_peds_aver() :
            msg = self.sep + 'STATUS OF PROCESSING IS NOT GOOD !!!'\
                  +'\nSee details in the logfile(s)'
            self.log(msg,4)
            #return

        self.print_dark_ave_batch_log()
        return

#------------------------------

    def proc_dark_run_in_batch(self) :

        if self.process :
            self.log(self.sep + 'Begin dark run data processing in batch queue %s' % self.queue,1)
        else :
            self.log(self.sep + '\nWARNING: FILE PROCESSING OPTION IS TURNED OFF...'\
                  + '\nAdd "-P" option in the command line to process files\n',4)
            return

        self.bjpeds = BatchJobPedestals(self.runnum)
        self.bjpeds.start_auto_processing()

        sum_dt=0
        dt = 10 # sec
        for i in range(50) :
            sleep(dt)
            sum_dt += dt
            status = self.bjpeds.status_for_peds_files_essential()
开发者ID:FilipeMaia,项目名称:psdmrepo,代码行数:70,代码来源:CommandLineCalib.py

示例2: CommandLineCalib

# 需要导入模块: import BatchJobPedestals [as 别名]
# 或者: from BatchJobPedestals import command_for_peds_scan [as 别名]

#.........这里部分代码省略.........
        + '\n     queue         : %s' % self.queue \
        + '\n     num_events    : %d' % self.num_events \
        + '\n     skip_events   : %d' % self.skip_events \
        + '\n     thr_rms       : %f' % self.thr_rms \
        + '\n     process       : %s' % self.process \
        + '\n     deploy        : %s' % self.deploy
        #+ '\nself.logfile       : ' % self.logfile     

#------------------------------

    def print_command_line_pars(self, args, opts) :

        print '\nprint_command_line_pars(...):'

        print 'args:', args
        print 'opts:', opts
        #print 'args:\n', ', '.join(args)

        #for k,v in opts.iteritems():
       	#    print '%s : %s' % (k.ljust(16),v)

#------------------------------

    def proc_dark_run_interactively(self) :

        if self.process :
            print '\n' + 50*'-' + '\nBegin dark run data processing interactively'
        else :
            print '\n' + 50*'-' + '\nWARNING: File processing option IS TURNED OFF...'\
                  + '\nAdd "-P" option in the command line to process files' 
            return

        self.bjpeds = BatchJobPedestals(self.runnum)
        self.bjpeds.command_for_peds_scan()

        self.print_list_of_types_and_sources_from_xtc()

        if not self.bjpeds.command_for_peds_aver() :
            msg = '\n' + 50*'-' + '\nSTATUS OF PROCESSING IS NOT GOOD !!!'\
                  +'\nSee details in the logfile(s)'
            print msg
            #return

        self.print_dark_ave_batch_log()
        return

#------------------------------

    def proc_dark_run_in_batch(self) :

        if self.process :
            print '\n' + 50*'-' + '\nBegin dark run data processing in batch queue %s' % self.queue
        else :
            print '\n' + 50*'-' + '\nWARNING: File processing option IS TURNED OFF...'\
                  + '\nAdd "-P" option in the command line to process files' 
            return

        self.bjpeds = BatchJobPedestals(self.runnum)
        self.bjpeds.start_auto_processing()

        sum_dt=0
        dt = 10 # sec
        for i in range(50) :
            sleep(dt)
            sum_dt += dt
            status = self.bjpeds.status_for_peds_files_essential()
开发者ID:FilipeMaia,项目名称:psdmrepo,代码行数:70,代码来源:CommandLineCalib.py


注:本文中的BatchJobPedestals.command_for_peds_scan方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。