Exemplo n.º 1
0
    def onButDeploy(self):
        logger.debug('onButDeploy', __name__)

        fdmets.deploy_calib_files(self.str_run_number,
                                  self.strRunRange(),
                                  mode='calibman-dark',
                                  ask_confirm=True)

        if cp.guistatus is not None: cp.guistatus.updateStatusInfo()
Exemplo n.º 2
0
    def deploy_calib_files(self) :
        list_of_deploy_commands, list_of_sources = fdmets.get_list_of_deploy_commands_and_sources_dark(self.str_run_number, self.str_run_range)
        msg = '\n' + 50*'-' + '\nTentative deployment commands:\n' + '\n'.join(list_of_deploy_commands)
        print msg

        if self.deploy :
            print '\n' + 50*'-' + '\nBegin deployment of calibration files' 
            fdmets.deploy_calib_files(self.str_run_number, self.str_run_range, mode='calibrun-dark', ask_confirm=False)
        else :
            print '\n' + 50*'-' + '\nWARNING: File deployment option IS TURNED OFF... \nAdd "-D" option in the command line to deploy files' 
Exemplo n.º 3
0
    def deploy_calib_files(self) :
        #list_of_deploy_commands, list_of_sources = fdmets.get_list_of_deploy_commands_and_sources_dark(self.str_run_number, self.str_run_range)
        #msg = self.sep + 'Tentative deployment commands:\n' + '\n'.join(list_of_deploy_commands)
        #self.log(msg,1)

        if self.deploy :
            self.log(self.sep + 'Begin deployment of calibration files',1) 
            fdmets.deploy_calib_files(self.str_run_number, self.str_run_range, mode='calibrun-dark', ask_confirm=False)
            self.log('\nDeployment of calibration files is completed',1)
        else :
            self.log(self.sep + '\nWARNING: FILE DEPLOYMENT OPTION IS TURNED OFF...'\
                     +'\nAdd "-D" option in the command line to deploy files\n',4)
Exemplo n.º 4
0
    def deploy_calib_files(self) :
        #list_of_deploy_commands, list_of_sources = fdmets.get_list_of_deploy_commands_and_sources_dark(self.str_run_number, self.str_run_range)
        #msg = self.sep + 'Tentative deployment commands:\n' + '\n'.join(list_of_deploy_commands)
        #self.log(msg,1)

        if self.deploy :
            self.log(self.sep + 'Begin deployment of calibration files',1) 
            fdmets.deploy_calib_files(self.str_run_number, self.str_run_range, mode='calibrun-dark', ask_confirm=False)
            self.log('\nDeployment of calibration files is completed',1)
        else :
            self.log(self.sep + '\nWARNING: FILE DEPLOYMENT OPTION IS TURNED OFF...'\
                     +'\nAdd "-D" option in the command line to deploy files\n',4)
Exemplo n.º 5
0
    def deploy_calib_files(self):
        list_of_deploy_commands, list_of_sources = fdmets.get_list_of_deploy_commands_and_sources_dark(
            self.str_run_number, self.str_run_range)
        msg = '\n' + 50 * '-' + '\nTentative deployment commands:\n' + '\n'.join(
            list_of_deploy_commands)
        print msg

        if self.deploy:
            print '\n' + 50 * '-' + '\nBegin deployment of calibration files'
            fdmets.deploy_calib_files(self.str_run_number,
                                      self.str_run_range,
                                      mode='calibrun-dark',
                                      ask_confirm=False)
        else:
            print '\n' + 50 * '-' + '\nWARNING: File deployment option IS TURNED OFF... \nAdd "-D" option in the command line to deploy files'
Exemplo n.º 6
0
 def on_but_show(self):
     """Prints the list of commands for deployment of calibration file(s)"""
     #str_run_number = '%04d' % self.run_number
     list_of_deploy_commands, list_of_sources = \
       fdmets.get_list_of_deploy_commands_and_sources_dark(self.run_number, self.get_gui_run().strRunRange())
     msg = '\n' + 50*'-' + '\nTentative deployment commands:\n' + '\n'.join(list_of_deploy_commands)
     logger.info(msg, __name__)
Exemplo n.º 7
0
 def on_but_show(self):
     """Prints the list of commands for deployment of calibration file(s)"""
     #str_run_number = '%04d' % self.run_number
     list_of_deploy_commands, list_of_sources = \
       fdmets.get_list_of_deploy_commands_and_sources_dark(self.run_number, self.get_gui_run().strRunRange())
     msg = '\n' + 50*'-' + '\nTentative deployment commands:\n' + '\n'.join(list_of_deploy_commands)
     logger.info(msg, __name__)
Exemplo n.º 8
0
    def onButDeploy(self):
        logger.debug('onButDeploy', __name__ )

        fdmets.deploy_calib_files(self.str_run_number, self.strRunRange(), mode='calibman-dark', ask_confirm=True)

        if cp.guistatus is not None : cp.guistatus.updateStatusInfo()