parameters: (self, options)
docstring: Check basic validity of options
docstring_summary: Check basic validity of options
docstring_tokens: Check basic validity of options
function: def post_check_validity(self, options):
          """Check basic validity of options
          """
          if not os.path.exists(options.local_executable):
              mesg = 'file %s does not exists' %options.local_executable
              self.error_exit(mesg)
  
          for machine in options.mapreduce_tmp_dir:
              if not machine in options.machines:
                  mesg = 'illegal machine %s in mapreduce_tmp_dir' %machine
                  self.error_exit(mesg)
  
          for machine in options.mapreduce_log_filebase:
              if not machine in options.machines:
                  mesg = 'illegal machine %s in mapreduce_log_filebase' %machine
                  self.error_exit(mesg)
  
          formats = [None, 'text', 'recordio']
          for i in range(options.num_worker):
              task = options.all_tasks[i]
              assert(task['machine'])
              assert(task['class'])
              assert(task['input_path'])
              assert(task['output_path'])
              assert(task['tmp_dir'])
              assert(task['log_filebase'])
              assert(task['input_format'] in formats)
              assert(task['output_format'] in formats)
function_tokens: def post_check_validity ( self , options ) : if not os . path . exists ( options . local_executable ) : mesg = 'file %s does not exists' % options . local_executable self . error_exit ( mesg ) for machine in options . mapreduce_tmp_dir : if not machine in options . machines : mesg = 'illegal machine %s in mapreduce_tmp_dir' % machine self . error_exit ( mesg ) for machine in options . mapreduce_log_filebase : if not machine in options . machines : mesg = 'illegal machine %s in mapreduce_log_filebase' % machine self . error_exit ( mesg ) formats = [ None , 'text' , 'recordio' ] for i in range ( options . num_worker ) : task = options . all_tasks [ i ] assert ( task [ 'machine' ] ) assert ( task [ 'class' ] ) assert ( task [ 'input_path' ] ) assert ( task [ 'output_path' ] ) assert ( task [ 'tmp_dir' ] ) assert ( task [ 'log_filebase' ] ) assert ( task [ 'input_format' ] in formats ) assert ( task [ 'output_format' ] in formats )