Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/main.html
Дата изменения: Fri Apr 8 12:46:14 2016
Дата индексирования: Sun Apr 10 19:32:54 2016
Кодировка:
Python: module main
 
 
main (version 5/15/12)
index
main.py

PURPOSE --
The LRP 'main' report.
 
DEVELOPER --
Don Chance
 
MODIFICATION HISTORY --
Date        Who            What
====        ===            ====
4-15-05     Chance         Initial implementation
6-14-05     Chance         add break between reports
6-21-05     Chance         sort by latest plan window end in
                           new_dated_report
8-17-05     Chance         modified hash-bang for move to python 2.4.1
4-30-07     Chance         add STIS into config map
6-06-07     Chance         adjust reports to keep within 132 columns
1-07-08     Chance         add processing error column to bad pw report
7-27-08     Chance         add new config_map option
11-17-08    Chance         add -quiet option
5-15-12     Chance         change zero second PW report to small PW

 
Modules
       
available
lrp_util
progress
spss_sys_util
spst_getopt
string
sys
time_util
visit_util

 
Functions
       
bad_pw_status_report(visit_list, lrp, config_map_format='full', fileId=<open file '<stdout>', mode 'w' at 0x47078>)
Produce a report that shows SUs with plan window status equal to
constraint or drop out or containing processing errors.
lrp_ready_nopws_report(visit_list, lrp, config_map_format='full', fileId=<open file '<stdout>', mode 'w' at 0x47078>)
Produce a report that shows SUs that have an LRP state of 'ready',
but lack plan windows.
new_dated_report(visit_list, lrp, config_map_format='full', fileId=<open file '<stdout>', mode 'w' at 0x47078>, endtime=None)
Produce a report that shows SUs that plan windows that end
before the input time.
run(*args)
The LRP 'main' report. 
 
Usage:
   do main lrp [-all|-menu|-reports=<comma separated list of ints>]
               [-endtime=<spss time>]
               [-pw_limit=<int>]
               [-output=<filename>]
               [-config_map=old|no_wf|full]
               [-quiet]
 
Output reports:
1. Small plan windows report.
2. Bad plan window report.
3. SUs with LRP state = ready, but no plan windows.
4. SUs with plan windows that end before input endtime.
 
 
The '-all' (default) option generates all the above reports.  The '-menu'
option will present you with a menu from which you chose the reports you
would like generated.  The '-reports=<list>' will generate those reports
you specify in <list>.
 
-endtime is used for the 'new_dated' report.  SUs with plan windows that
expire before this time will be output.  Defaults to the current time.
 
-pw_limit is used for the small plan window report.  Plan windows this size
(in seconds) or smaller are reported.  Defaults to 1 second.
 
If the optional parameter -output=<filename> is given, all output will 
go to <filename>.  Otherwise output from each report will go to its own
file.  If -output=stdout, output will go to the screen.
 
-config_map may be set to the 'old' configuration mapping (WF 123 CFN A WHS CO),
'no_wf' which excludes the WFPC2 and FOC columns and adds the new COS and WF3
columns (123 CFN A WHS SL VI), or 'full' (default) which includes both WFPC2,
FOC, COS, and WF3 columns (WF 123 CFN A WHS SL VI).
 
-quiet turns off the ASCII progress thermometer and other optional output.
small_pw_report(visit_list, lrp, config_map_format='full', fileId=<open file '<stdout>', mode 'w' at 0x47078>, pw_limit=1)
Produce a report that shows SUs with plan window begin equal to
plan window end.

 
Data
        CONFIG_MAP_FORMAT_DEFAULT = 'full'
REPORTS_LIST = [{'filename_fmt': 'small_pw_%s.rpt', 'menu_text': 'Small plan windows (small_pw_%s.rpt).', 'other_args': {'pw_limit': 1}, 'report': <function small_pw_report>, 'text_fmt': 'Generating small plan windows report'}, {'filename_fmt': 'bad_pw_status_%s.rpt', 'menu_text': 'SUs with plan window status = constraint or drop...taining processing errors (bad_pw_status_%s.rpt).', 'other_args': {}, 'report': <function bad_pw_status_report>, 'text_fmt': 'Generating bad plan window report'}, {'filename_fmt': 'lrp_ready_nopws_%s.rpt', 'menu_text': 'SUs with LRP state = ready, but no plan windows (lrp_ready_nopws_%s.rpt).', 'other_args': {}, 'report': <function lrp_ready_nopws_report>, 'text_fmt': 'Generating for SUs with LRP state of ready, but no plan windows'}, {'filename_fmt': 'new_dated_%s.rpt', 'menu_text': 'SUs with plan windows that end before %s (new_dated_%s.rpt).', 'other_args': {'endtime': None}, 'report': <function new_dated_report>, 'text_fmt': 'Generating report for SUs whose plan windows end before '}]
__version__ = '5/15/12'