Пример #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()
Пример #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' 
Пример #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)
Пример #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)
Пример #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'
Пример #6
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()