Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/pass_run.html
Дата изменения: Fri Apr 8 12:46:15 2016
Дата индексирования: Sun Apr 10 23:12:23 2016
Кодировка:

Поисковые слова: star
Python: module pass_run
 
 
pass_run (version 5/8/07)
index
pass_run.py

PURPOSE --
Main class for running PASS images.
 
 
DEVELOPER --
Kerry Clark
 
MODIFICATION HISTORY --
 
o  initial implementation  KWC  9/17/03
o  modified for SGE 6.  drc 5/8/07

 
Modules
       
os
pass_script
spss_sys_util
time_util

 
Classes
       
pass_run

 
class pass_run
    Main class for running PASS images.
 
  Methods defined here:
__init__(self, run_name, script_directory)
Constructor.
Run name is a unique ID for this run. Used for the gridware
  job name and in creating any master script files.
Script directory is the directory where the optional main
  script will be created.
add_script(self, script_obj)
Add a new script to be run.
The script must have a unique pass_product_type attribute.
build_scripts(self, verbose=0)
Build the scripts that are to be run.
If more than one script is to be run then a new main
 script is created to run the others.
Will create a directory for each script if specified.
Returns the main script name.
get_job_id(self)
Get the Gridware job ID.
Returns None unless the submit method has been envoked.
get_run_log_name(self)
Get the log file name for this run.
Returns None unless the submit method has been envoked.
get_run_name(self)
Get the run name.
get_script_directory(self)
Get the main script directory location.
gridware_cmd(self, script_name, gridware_que_list=None, depend_job_id=None)
Creates a gridware submit command for making a PASS run in batch.
If a list of gridware ques is not given then uses the spst resource
 to determine the machine to run on.
If a optional gridware job id is given the batch job will not
 start until the prior job is finished.
Mail notification is enabled only if the user_mail_addr 
  environmental variable is set.
order_script(self)
Determine the run order of a series of scripts.
Known PASS images are put in their PASS processing order.
Unkown PASS images are then ordered alphabetically.
run(self, remote_vms=0, verbose=0)
Execute the PASS script in the background.
submit(self, run_log_name, que_list=None, depend_job_id=None, remote_vms=0, verbose=0)
Execute the PASS script in batch.

 
Data
        DATABASENAME = 'spss'
FALSE = 0
False = 0
MEGG_OUTPUT_DIRECTORY = '/data/scheduling/spss_flight_data/pass//megg/data'
MEGG_RMS_DIRECTORY = '/data/scheduling/spss_flight_data/pass//megg/rms'
MOSR_AREA = '/data/scheduling/spss_flight_data/pass//mosr'
MSCL_SCRATCH_DIR = '/data/scheduling/spss_flight_data/pass//workspace/mscl_scratch'
PASS_CL = '/data/scheduling/spss_flight_data/pass/cl'
PASS_CLIN_DIRECTORY = '/data/scheduling/spss_flight_data/pass//clin'
PASS_MS = '/data/scheduling/spss_flight_data/pass/ms'
PASS_MSIN_DIRECTORY = '/data/scheduling/spss_flight_data/pass/msin/'
PASS_MSOUT_DISK = '/data/scheduling/spss_flight_data/pass//'
PASS_PRODUCT_ORDER = ['prd', 'ms', 'xmr', 'megg', 'cl', 'opc']
PASS_SYSTEM = 'ops'
PASS_USER = 'planinst'
PDBMAN_DISK = '/data/scheduling/spss_flight_data/pass//'
TEMPLATE_LOGICAL_FILE = '/data/scheduling/spss_flight_data/pass//op_logicals/ops_job_logs.com'
TRUE = 1
True = 1
USER_CLBASE_DIRS = []
USER_CLCMD_DIRS = []
USER_CLSTART_DIRS = []
USER_CLTXT_DIRS = []
USER_MSBASE_DIRS = []
USER_MSCIN_DIRS = []
USER_PRD_DIRS = []
VMS_PASSOPS = '/dev/null'
XFER_SCRATCH_DIR = '/data/scheduling/spss_flight_data/pass//workspace/xfer_scratch'
__version__ = ' 5/8/07'
false = 0
true = 1