Beispiel #1
0
 def check_status_scan(self):
     bstatus, bstatus_str = bjdata.status_batch_job_for_data_scan()
     fstatus, fstatus_str = bjdata.status_for_data_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_data_scan()
         self.set_fields()
     if cp.procDataStatus & 1 : logger.info(msg, __name__) 
Beispiel #2
0
 def on_but_status(self):
     logger.debug('on_but_status', __name__)
     bjdata.check_work_files_for_data_aver()
     if bjdata.status_for_data_aver_file() : self.but_status.setStyleSheet(cp.styleButtonGood)
     else                                  : self.but_status.setStyleSheet(cp.styleButtonBad)
     bjdata.check_batch_job_for_data_scan()
     bjdata.check_batch_job_for_data_aver()
     blp.parse_batch_log_data_scan()
     blp.parse_batch_log_data_aver()
     self.set_fields()
Beispiel #3
0
 def on_but_status(self):
     logger.debug('on_but_status', __name__)
     bjdata.check_work_files_for_data_aver()
     if bjdata.status_for_data_aver_file():
         self.but_status.setStyleSheet(cp.styleButtonGood)
     else:
         self.but_status.setStyleSheet(cp.styleButtonBad)
     bjdata.check_batch_job_for_data_scan()
     bjdata.check_batch_job_for_data_aver()
     blp.parse_batch_log_data_scan()
     blp.parse_batch_log_data_aver()
     self.set_fields()
Beispiel #4
0
    def on_but_path(self):
        logger.debug('Data 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_data .setValue(dname)
        cp.in_file_data.setValue(fname)
        #self.edi_path.setText(path)
        self.edi_path.setText( fnm.path_data_xtc_cond() )
        logger.info('selected file: ' + str(fnm.path_data_xtc()), __name__ )
        self.set_default_pars()
        blp.parse_batch_log_data_scan()
        self.set_fields()