Package schrodinger :: Package application :: Package desmond :: Module cmj :: Class StageBase
[hide private]
[frames] | no frames]

Class StageBase

         object --+    
                  |    
picklejar.Picklable --+
                      |
                     StageBase

Nested Classes [hide private]
  __metaclass__
Instance Methods [hide private]
 
__init__(self, should_pack=True)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__getstate__(self, state=None)
 
__setstate__(self, state)
 
_print(self, loglevel, msg)
 
_log(self, msg)
 
_get_macro_dict(self)
 
_gen_unique_jobname(self, suggested_jobname)
 
_get_jobname_and_dir(self, job, macro_dict={})
 
_param_jlaunch_opt_check(self, key, val_list, prefix, ev)
 
_reg_param_precheck(self, func)
 
_reg_param_postcheck(self, func)
 
_set(self, key, setter, transformer=None)
 
_effect(self, param)
 
describe(self)
 
check_param(self)
 
push(self, job)
 
determine(self)
 
crunch(self)
This is where jobs of this stage are created.
 
restart_subjobs(self, jobs)
Subclass should override this if it supports subjob restarting.
 
release(self, is_restarting=False)
Calls the 'crunch' method to generate new jobs objects and submits them to the 'QUEUE'.
 
capture(self, job)
 
prestage(self)
 
poststage(self)
 
hook_captured_successful_job(self, job)
 
pack_stage(self, force=False)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  count = 0, Picklable
  stage_cls = {}
  stage_obj = {}
  NAME = "generic"
  PARAM = _create_param_when_needed(...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, should_pack=True)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__

crunch(self)

 

This is where jobs of this stage are created. This function should be overriden by the subclass.


Class Variable Details [hide private]

PARAM

Value:
_create_param_when_needed("""
    DATA = {
    title         = ?
    should_sync   = true
    dryrun        = false
    prefix        = ""
    jobname       = "$MASTERJOBNAME_$STAGENO"
    dir           = "$[$JOBPREFIX/$]$[$PREFIX/$]$MASTERJOBNAME_$STAGEN\
...