Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/build_PDBMAN_pickle.html
Дата изменения: Fri Apr 8 12:46:14 2016
Дата индексирования: Mon Apr 11 05:40:18 2016
Кодировка:

Поисковые слова: integral
Python: module build_PDBMAN_pickle
 
 
build_PDBMAN_pickle (version 11/25/03)
index
build_PDBMAN_pickle.py

PURPOSE --
A module for creating PDBMAN pickles.
 
DEVELOPER --
Kerry Clark
 
MODIFICATION HISTORY --
 
 o Initial implementation  KWC   8/ 8/03    
 o Modified 10/ 9/03 KWC - Rename to build_PDBMAN_pickle. 
 o Modified 11/25/03 KWC - Use new configure_util methods.

 
Modules
       
configure_util
glob
os
prd_util
spss_sys_util
string
sys
time
time_util

 
Classes
       
mod_prd_pickle
pickle_prd

 
class mod_prd_pickle
    A class for modifing PDBMAN ODB products pickle files.
 
  Methods defined here:
__init__(self, file_name)
Initialize by reading in the pickle file to be changed from
PASS_INPUT_PICKLES.
find_file(self, file_name)
Looks for a pickle file. Handles full file specification as
well as just the file name without an extension.
mod_file_loc(self, env_name, file_name)
Update the location of a single PDBMAN ODB file.
mod_files_root(self, old_root_string, new_root_string)
Change the root directory of a set of PDBMAN ODB's.
mod_release_info(self, rel_type, rel_sms_id, rel_ver, comment)
Modify the release information in the PDBMAN pickle header.
validate(self)
Returns true if all the configured products exist.
write_prd_pickle(self, file_name)
Create the new pickle in the PASS_OUTPUT_PICKLES directory.

 
class pickle_prd
    A class for pickling configured PDBMAN ODB products.
Note: This class will create a new pickle even if the ODB file
       doesn't exist. This is to allow pickle creation on the
       Science cluster before the ODB has been installed.
 
  Methods defined here:
__init__(self)
The PRD release type is a required parameter for all.
add_odb(self, env_name, file_name)
Add a new PDBMAN ODB configured file object to the configured
product object given the PASS PDBMAN environmental variable 
name and the file name.
pop_from_dir(self, PDBMAN_prod_dir)
Populate configured file objects from the PDBMAN products in a 
given directory.
pop_from_env(self)
Populate configured file products from the PASS environmental 
variables.
set_release_info(self, rel_type, rel_sms_id, rel_ver, comment)
Set the release information in the pickle header.
validate(self)
Returns true if all the configured products exist.
write_prd_pickle(self, file_name)
Create a new PDBMAN pickle in the PASS_OUTPUT_PICKLES directory.
If no file name is given it will make one using the SMS ID and
version ID.

 
Functions
       
run(pickle_name=None, rel_type=None, rel_sms_id=None, rel_ver=None, comment=None)
Generate a new PRD pickle using current PDBMAN environmental settings.
 
Usage:
do build_PDBMAN_pickle <Pickle name> <Rel Type> <SMS ID> <Version><Comment>
   where:
           Pickle name       = Root name of pickle file (no extension).
           Rel Type          = Release Type (OPS, TEST, or SM)
           SMS ID            = Flight SMS name.
           Version           = Version of this release.
           Comment           = Descriptive comment
 
   The new pickle file will be called:
        $PASS_OUTPUT_PICKLES/<Pickle name>.pickle
 
   Please make sure you have write permission to the PASS_OUTPUT_PICKLES
    directory and that you are not overwritting an existing file.

 
Data
        FALSE = 0
False = 0
PRD_ENVIRONMENT_DESCRIPTION_DICTIONARY = {'CFG_AGCFODB': 'PDBMAN Autogroup Command Data (AGCF) file.', 'CFG_CDTODB': 'PDBMAN Command Description Table Data (CMDF,CMDP,CMDS) file.', 'CFG_CONFODB': 'PDBMAN TDRS Configuration Code Description Data (CONF) file', 'CFG_CRPFODB': 'PDBMAN Constraint and Restriction Parameters Value Data (CRPF) file.', 'CFG_DFSCODB': 'PDBMAN DF224 Scenario Data (DFSC) file.', 'CFG_GREXODB': 'PDBMAN Group Expansion Data (GREX) file.', 'CFG_PEQFODB': 'PDBMAN Power Event/Equipment Data (PEQF) file.', 'CFG_PLCPODB': 'PDBMAN Planning Command Pool Data (PLCP) file.', 'CFG_SCHFODB': 'PDBMAN Spacecraft Characteristics Data (SCHF) file.', 'CFG_SIAFODB': 'PDBMAN SI Aperture Definition Data (SIAF) file.', ...}
PRD_ODB_ROOT_NAME_DIC = {'CFG_AGCFODB': 'agcf', 'CFG_CDTODB': 'cdt', 'CFG_CONFODB': 'conf', 'CFG_CRPFODB': 'crpf', 'CFG_DFSCODB': 'dfsc', 'CFG_GREXODB': 'grex', 'CFG_PEQFODB': 'peqf', 'CFG_PLCPODB': 'plcp', 'CFG_SCHFODB': 'schf', 'CFG_SIAFODB': 'siaf', ...}
PRD_ODB_TYPES = ['CFG_AGCFODB', 'CFG_CDTODB', 'CFG_CONFODB', 'CFG_CRPFODB', 'CFG_DFSCODB', 'CFG_GREXODB', 'CFG_PEQFODB', 'CFG_PLCPODB', 'CFG_SCHFODB', 'CFG_SIAFODB', 'CFG_SIARODB', 'CFG_SICFODB', 'CFG_SOIFODB', 'CFG_SVDFODB', 'CFG_TBFODB']
PRD_RELEASE_TYPES = ['OPS', 'TEST', 'SM']
TRUE = 1
True = 1
__version__ = '11/25/03'
false = 0
true = 1