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

Поисковые слова: южная атлантическая аномалия
Python: module build_PRD_dataset
 
 
build_PRD_dataset (version 4/16/04)
index
build_PRD_dataset.py

PURPOSE --
  Processes a request to build a set of PRD files
 
 
DEVELOPER --
K. Clark
 
MODIFICATION HISTORY --
 
o Initial implementation 12/18/02
o Modified  8/28/03 KWC - Create work directory, renamed 
                           process_build_PRD.py to build_PRD_dataset.py.  
o Modified 11/14/03 KWC - PRDUVM library location. Changed module name 
   to build_prd_files.
o Modified  1/28/04 KWC - Add support for a list of files in a pickle.
o Modified  2/ 3/04 RSK - Add support for user change directory.
o Modified  3/12/04 RSK - Add processing for differencing output with
                           operational files
o Modified  4/ 1/04 KWC - Fix definition of new_user_file_dict, make 
                           file differencing an option.
o Modified  4/16/04 KWC - Use new prd_file_data, difference_PRD_files
                           and check_pdb_cards classes.

 
Modules
       
build_PRD_file
cPickle
check_pdb_cards
difference_prd_files
os
prd_file_data
re
scan_for_prd_files
shutil
string
sys
time

 
Classes
       
build_PRD_dataset

 
class build_PRD_dataset
     Methods defined here:
__init__(self)
Standard definitions.
build_from_change_tree(self, PRDUVM_branch_name, change_tree_root_dir=None)
Builds a new PRD dataset from all the elements found in a PRDUVM
change directory tree. The PRDUVM_branch_name specifies if this 
is an Operational or Servicing Mission PRD directory.
build_from_user_file_list(self, PRDUVM_branch_name)
Builds a new PRD dataset from a list of new PRD element files. 
The PRDUVM_branch_name specifies if this is an 
Operational or Servicing Mission PRD directory.
copy_rcs_files(self)
Copies the user selected RCS,v files from a PRDUVM directory tree
into a new pdb_change directory tree. Returns the name of this 
new directory.
find_PRD_types_from_change_tree(self, change_tree_root_dir)
Find the PRD types from a PRDUVM change tree.
Return a list containing the top level directory name
of where these files are found (plcp_ops, tidf_sm4, etc.)
find_new_user_files(self, new_file_dir)
Find all the new PRD files in the directory and 
store them in a dictionary.
gen_PRD(self, new_PRD_file_dict, PDBMAN_run='Yes', diff_flag='No')
Write out the PRD dataset to disk.
The PDBMAN_run flag creates new ./input directory if Yes
  and uses ./ if No.
The diff_flag differences the new PRD files if Yes.
get_full_PRD_files(self)
Generate a list of all the full PRD files that are in the user
input file dictionary.
store_full_files(self, diff_flag='No')
Process the full PRD files and makes sure they have line numbers
and valid cards.
store_input_files(self, new_PRD_file_dict, run_dir)
Create a directory to store all the files that were used as inputs.
store_new_files(self, new_PRD_file_dict, PDBMAN_run='Yes', diff_flag='No')
Process the new files that have been created from the RCS elements.
unpack_user_pickle(self, user_pickle_file)
Unpack a pickle file containing a list of new PRD elements or
RCS,v files.

Data and other attributes defined here:
PRD_root_dir = '/data/tigger21/sogspdb/uvm'
PRD_types = ['crpf', 'dfsc', 'plcp', 'ptld', 'schf', 'sicf', 'svdf', 'tfpf', 'tidf']

 
Data
        __version__ = ' 4/16/04'
re_change = <_sre.SRE_Pattern object>