예제 #1
0
 def check_status_scan(self):
     bstatus, bstatus_str = bjpeds.status_batch_job_for_peds_scan()
     fstatus, fstatus_str = bjpeds.status_for_peds_scan_files()
     msg = 'Scan: ' + bstatus_str + '   ' + fstatus_str
     self.set_for_status(fstatus, msg, self.but_scan, self.table_scan)
     if fstatus :
         blp.parse_batch_log_peds_scan()
         self.set_fields()
     if cp.procDarkStatus & 1 : logger.info(msg, __name__) 
예제 #2
0
 def on_but_status(self):
     logger.debug('on_but_status', __name__)
     bjpeds.check_work_files_for_pedestals()
     if bjpeds.status_for_pedestal_file() : self.but_status.setStyleSheet(cp.styleButtonGood)
     else                                 : self.but_status.setStyleSheet(cp.styleButtonBad)
     bjpeds.check_batch_job_for_peds_scan()
     bjpeds.check_batch_job_for_peds_aver()
     blp.parse_batch_log_peds_scan()
     self.set_fields()
예제 #3
0
 def on_but_status(self):
     logger.debug('on_but_status', __name__)
     bjpeds.check_work_files_for_pedestals()
     if bjpeds.status_for_pedestal_file():
         self.but_status.setStyleSheet(cp.styleButtonGood)
     else:
         self.but_status.setStyleSheet(cp.styleButtonBad)
     bjpeds.check_batch_job_for_peds_scan()
     bjpeds.check_batch_job_for_peds_aver()
     blp.parse_batch_log_peds_scan()
     self.set_fields()
예제 #4
0
    def on_but_path(self):
        logger.debug('Dark file browser', __name__ )
        path = str(self.edi_path.text())        
        path = str( QtGui.QFileDialog.getOpenFileName(self,'Select file',path) )
        dname, fname = os.path.split(path)

        if dname == '' or fname == '' :
            logger.info('Input directiry name or file name is empty... keep file path unchanged...')
            return

        cp.in_dir_dark .setValue(dname)
        cp.in_file_dark.setValue(fname)
        #self.edi_path.setText(path)
        self.edi_path.setText( fnm.path_dark_xtc_cond() )
        logger.info('selected file: ' + str(fnm.path_dark_xtc()), __name__ )
        self.set_default_pars()
        blp.parse_batch_log_peds_scan()
        self.set_fields()