|  | 
        
          | __init__(self,
        stagename,
        specs=None,
        allow_extra_keywords=False,
        cleanup=True,
        inpipeline=False) This is the Stage class.
 |  |  | 
    |  | 
        
          | validateValues(self,
        preserve_errors=False) Validates the stored keywords.
 |  |  | 
    |  | 
        
          | getVerbosity(self) Return verbosity of thos stage (for JobDJ)
 |  |  | 
    |  | 
        
          | mainProduct(self) If a stage has a main product associated with it, the stage should 
      overwrite this method with a method that returns the product string.
 |  |  | 
    |  | 
        
          | setMainProduct(self,
        product) Specify which product this stage is part of.
 |  |  | 
    |  | 
        
          | addExpectedInput(self,
        position,
        type,
        required=True) A stage can accept one or more pipeio input objects.
 |  |  | 
    |  | 
        
          | addExpectedOutput(self,
        position,
        type,
        always=True) A stage can return one or more pipeio objects.
 |  |  | 
    |  | 
        
          | __getitem__(self,
        keyname) Returns the value for specified keyword, or default value.
 |  |  | 
    |  | 
        
          | getStageDirectory(self) Return the directory in which the stage is running
 |  |  | 
    |  | 
        
          | requiredProduct(self,
        product,
        min_release=None) Specify a product that is required for this stage to run; optionally 
      minimum version.
 |  |  | 
    |  | 
        
          | _minVersionPresent(self,
        product,
        min_release=None) Internal: whether minimum version of product is installed.
 |  |  | 
    |  | 
        
          | checkProducts(self) Raises RuntimeError if any of the required products are not installed
      or the version installed is less that minimum required version.
 |  |  | 
    |  | 
        
          | getRuntimePath(self,
        filename) Return the runtime-path of a file that user specified Prints an error
      and exits if file does not exist.
 |  |  | 
    |  | 
        
          | requiredProductRuntime(self,
        product,
        min_release=None) Similar to requiredProduct() but can be used to specify required 
      products at runtime.
 |  |  | 
    |  | 
        
          | outputRequested(self,
        position) Returns True if the user requested optional output at 
      <position>
 |  |  | 
    |  | 
        
          | setOutput(self,
        position,
        obj) Use this method at the end of operate() to set the output.
 |  |  | 
    |  | 
        
          | getOutput(self,
        position) Returns the output IO object of the stage at specified position.
 |  |  | 
    |  | 
        
          | _inputCheck(self,
        position,
        input) Makes sure that position is valid, that the specified input object is
      OK for the position.
 |  |  | 
    |  | 
        
          | __getstate__(self) This method is called by the pickle module to return the state to be 
      serialized by dump().
 |  |  | 
    |  | 
        
          | dump(self) This method dumps all the variables of the Stage to a restart file.
 |  |  | 
    |  | 
        
          | checkFile(self,
        file,
        error= 'File does not exist:')Raise exception  if specified file does not exist.
 |  |  | 
    |  | 
        
          | checkFiles(self,
        files,
        error= 'File does not exist')Raise expetion if any file does not exist.
 |  |  | 
    |  | 
        
          | log(self,
        *args) Prints specified objects to the stage log file.
 |  |  | 
    |  | 
        
          | lognoret(self,
        *args) Prints specified objects to the stage log file.
 |  |  | 
    |  | 
        
          | info(self,
        text) Print an info line to the log file
 |  |  | 
    |  | 
        
          | debug(self,
        text) Print a debug line to the log file
 |  |  | 
    |  | 
        
          | warning(self,
        text) Print a warning line to the log file
 |  |  | 
    |  | 
        
          | error(self,
        text) Print an error line to the log file
 |  |  | 
    |  | 
        
          | exit(self,
        text= '')Print an error line to the log file and exit with code 1
 |  |  | 
    |  | 
        
          | reportParameters(self,
        fh=None) Print the value of each keyword for this stage to the stream 
      specified as <fh>.
 |  |  | 
    |  | 
        
          | checkParameters(self) OVERWRITE: Make sure that all parameters are valid.
 |  |  | 
    |  | 
        
          | hasStarted(self) Returns True if this stage has started.
 |  |  | 
    |  | 
        
          | hasCompleted(self) Returns True if this stage's operate() exited successfully.
 |  |  | 
    |  | 
        
          | checkInputs(self) OVERWRITE: Return False if something is wrong with the input files or
      the parameter, otherwise return True.
 |  |  | 
    |  | 
        
          | getName(self) Return stagename (jobname of the stage)
 |  |  | 
    |  | 
        
          | getInputNames(self) Return a dictionary of variable name of the inputs at each position.
 |  |  | 
    |  | 
        
          | setInput(self,
        position,
        name=None,
        obj=None) Specify an input to use for this stage.
 |  |  | 
    |  | 
        
          | getInput(self,
        position) Use in operate() to get the input object for specified position.
 |  |  | 
    |  | 
        
          | iterInputs(self) Iterate through input objects: (position, obj)
 |  |  | 
    |  | 
        
          | setOutputName(self,
        position,
        varname) Is called by Pipeline when starting the stage.
 |  |  | 
    |  | 
        
          | getOutputNames(self) Return a list of output names for each position (dict)
 |  |  | 
    |  | 
        
          | getOutputName(self,
        position) Return the output name for specified position
 |  |  | 
    |  | 
        
          | setJobOptions(self,
        subjob_hosts=None,
        njobs=None,
        adjust=None,
        force=None,
        subjob_local=None,
        max_retries=None,
        cleanup=None) Tell this stage how to run the subjobs
None for njobs means determine automatically
 |  |  | 
    |  | 
        
          | getHostList(self) Returns a list of hosts to run the subjobs on.
 |  |  | 
    |  | 
        
          | getHostStr(self) Just like getHostList() but instead of returning a list, returns a 
      host string to be passed to the -HOST argument.
 |  |  | 
    |  | 
        
          | getLocal(self) Whether subjobs should be run with -LOCAL.
 |  |  | 
    |  | 
        
          | getNJobs(self) Returns the requested target number of subjobs, and whether or not to
      adjust that number if it is unreasonable.
 |  |  | 
    |  | 
        
          | _calcStsPerJob(self,
        total_mol,
        njobs) Determine the number of structure that should go into each subjob
 |  |  | 
    |  | 
        
          | _adjustNJobs(self,
        total_mol,
        min_job_size,
        max_job_size) Adjusts the specified number of jobs so that the job size ranges 
      between specificed min and max.
 |  |  | 
    |  | 
        
          | getAdjustedNJobs(self,
        total_mol,
        min_job_size,
        max_job_size) Returns the desired number of subjobs, and adjusts it for the the 
      specified min & max job sizes if the user specified ADJUST 
      option.
 |  |  | 
    |  | 
        
          | JobDJOptions(self) Returns a dictionary of options to pass to JobDJ: hosts, local, 
      max_retries, default_max_retries, verbosity
 |  |  | 
    |  | 
        
          | setJobDJOptions(self,
        jobdj) Use this method to adjust the specified queue.JobDJ instance to the 
      VSW settings.
 |  |  | 
    |  | 
        
          | getJobDJ(self,
        **kwargs) Returns a pre-set JobDJ instance for the stage to use.
 |  |  | 
    |  |  | 
    |  | 
        
          | getNCpus(self) Returns the total number of processors specified in the host string.
 |  |  | 
    |  | 
        
          | getCleanupRequested(self) Stages should clean up after themselves if this returns True
 |  |  | 
    |  |  | 
    |  | 
        
          | updateJobdj(self,
        jobdj) Gets called periodically in order to update JobDJ's hosts.
 |  |  | 
    |  |  | 
    |  | 
        
          | run(self,
        idle_function=None,
        restart_file=None,
        verbosity=None,
        logfh=None) Run the stage.
 |  |  | 
    |  | 
        
          | addOutputFile(self,
        filename) Adds the specified file to the stage's job control record.
 |  |  | 
    |  | 
        
          | operate(self) OVERWRITE: Perform an operation on the input Objects.
 |  |  | 
    |  | 
        
          | genFileName(self,
        extension=None,
        filenum=None,
        start=None,
        end=None) Generate a file name to be used by the stage.
 |  |  | 
    |  | 
        
          | genOutputFileName(self,
        position,
        extension= '',
        filenum=None,
        start=None,
        end=None)Generate a file name to be used by the stage when writing
files for the output position <position>.
 |  |  | 
    |  | 
        
          | waitForFileStatus(self,
        file,
        sleeptime=0.2,
        timeout=300000) If the file does not exist, returs False; otherwise waits for the 
      file to finish writing and returs Frue.
 |  |  | 
    |  | 
        
          | waitForFiles(self,
        files,
        sleeptime=0.2,
        timeout=1000000) Waits until the files are fully written.
 |  |  | 
  
    | Inherited from UserDict.IterableUserDict:__iter__ Inherited from UserDict.UserDict:__cmp__,__contains__,__delitem__,__len__,__repr__,__setitem__,clear,copy,get,has_key,items,iteritems,iterkeys,itervalues,keys,pop,popitem,setdefault,update,values |