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

 PURPOSE --
 Identify differences between two LRPs.
 
 DEVELOPER --
 Don Chance
 
 MODIFICATION HISTORY --
 Date        Who            What
 ====        ===            ====
 3-14-05     Chance         Initial implementation
 3-29-05     Chance         fix Extern
 4-09-05     Chance         add output option
 5-11-05     Chance         add pc option
 5-31-05     Chance         reworked pc option
 6-08-05     Chance         remove fileId from filters
 6-14-05     Chance         put breaks between reports
 6-15-05     Chance         fix lost_pws report
 7-13-05     Chance         fix bug in picked_up_sus_report
 7-18-05     Chance         fix more bugs
 8-17-05     Chance         updated hash-bang for move to python 2.4.1
 8-24-05     Chance         fix lost_pws report
 8-03-06     Chance         fix bug when no flight ready date found
11-09-06     Chance         fix internal_su bug
 2-21-07     Chance         internal_su returns None bug
 4-30-07     Chance         add STIS to config map
 6-19-07     Chance         revised to keep reports within 132 columns
 1-09-08     Chance         add scheduled start time to dropped sus report
 7-22-08     Chance         add config_map option
 7-24-08     Chance         modify the config_map default
 5-22-09     Chance         change how missing PWS record is reported in
                             lost plan windows report
 3-28-12     Chance         fix bug with -pc option
 5-21-12     Chance         add external/internal flag to reports
12-21-12     Chance         better handle non-existent SUs
 7-15-14     Chance         add integrated PW duration and flight calendar info
 6-04-15     Chance         fix formatting issue.

 
Modules
       
available
lrp_util
plan_window_util
progress
spss_sys_util
spst_getopt
sys
time_util
visit_util

 
Functions
       
changed_fr_date_report(lrp1, lrp2, filters=[], fileId=<open file '<stdout>', mode 'w' at 0x47078>, config_map_format='full')
Produce a report on those visits for which the flight ready date
has changed between lrp1 and lrp2.
diff_pws_report(lrp1, lrp2, filters=[], fileId=<open file '<stdout>', mode 'w' at 0x47078>, config_map_format='full')
Produce a report showing the visits with changed plan windows
between lrp1 and lrp2.
diff_status_report(lrp1, lrp2, filters=[], fileId=<open file '<stdout>', mode 'w' at 0x47078>, config_map_format='full')
Produce a report of differences between statuses in two given LRPs as
well as the current status.
dropped_props_report(lrp1, lrp2, filters=[], fileId=<open file '<stdout>', mode 'w' at 0x47078>)
Produce a report of the proposals dropped between two LRPs.
dropped_sus_report(lrp1, lrp2, filters=[], fileId=<open file '<stdout>', mode 'w' at 0x47078>)
Produce a report of the SUs dropped between two LRPs.
filter_pc(llist, pc)
Filter on the input list of PCs.
 
Returns a list-like object of the same class that was passed in.
gained_pws_report(lrp1, lrp2, filters=[], fileId=<open file '<stdout>', mode 'w' at 0x47078>, config_map_format='full')
Produce a report of SUs that gained plan windows between lrp1 and lrp2.
lost_pws_report(lrp1, lrp2, filters=[], fileId=<open file '<stdout>', mode 'w' at 0x47078>, config_map_format='full')
Produce a report of SUs that lost plan windows between lrp1 and lrp2.
picked_up_sus_report(lrp1, lrp2, filters=[], fileId=<open file '<stdout>', mode 'w' at 0x47078>, pws=False, config_map_format='full')
Produce a report on SUs are not in lrp1, but are in lrp2.
run(*args)
Difference two LRPs
 
Usage:
   do diff_lrps lrp1 lrp2 [-all|-menu|-reports=<comma separated list of ints>]
                          [-pc=<comma separated list of program coordinators>]
                          [-output=<filename>]
 
Output reports:
1. Proposals dropped between LRPs (dropped_props_<lrp1>_<lrp2>.rpt).
2. SUs dropped between LRPs (dropped_sus_<lrp1>_<lrp2>.rpt).
3. SUs that lost Plan Windows between LRPs (lost_pws_<lrp1>_<lrp2>.rpt).
4. SUs picked up between two LRPs that do not have Plan Windows
   (picked_up_sus_no_pws_<lrp1>_<lrp2>.rpt).
5. SUs picked up between two LRPs that have Plan Windows
   (picked_up_sus_with_pws_<lrp1>_<lrp2>.rpt).
6. SUs that gained Plan Windows between LRPs
   (gained_pws_<lrp1>_<lrp2>.rpt).
7. Differences between statuses in the two given LRPs as well as the
   current status (diff_status_<lrp1>_<lrp2>.rpt).
8. SUs with changed flight ready dates between two LRPs
   (changed_fr_<lrp1>_<lrp2>.rpt).
9. Differences between Plan Windows in two LRPs
   (diff_pws_<lrp1>_<lrp2>.rpt).
 
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>.
 
The -pc option will produce reports only for the PCs listed.  The default
is produce reports containing all PCs.
 
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).

 
Data
        CONFIG_MAP_FORMAT_DEFAULT = 'full'
REPORTS_LIST = [{'filename_fmt': 'dropped_props_%s_%s.rpt', 'menu_text': 'Proposals dropped between LRPs (dropped_props_%s_%s.rpt).', 'other_args': {}, 'report': <function dropped_props_report>, 'text_fmt': 'Generating dropped proposals report: %s'}, {'filename_fmt': 'dropped_sus_%s_%s.rpt', 'menu_text': 'SUs dropped between LRPs (dropped_sus_%s_%s.rpt).', 'other_args': {}, 'report': <function dropped_sus_report>, 'text_fmt': 'Generating dropped SUs report: %s'}, {'filename_fmt': 'lost_pws_%s_%s.rpt', 'menu_text': 'SUs that lost Plan Windows between LRPs (lost_pws_%s_%s.rpt).', 'other_args': {'config_map_format': 'full'}, 'report': <function lost_pws_report>, 'text_fmt': 'Generating lost Plan Windows report: %s'}, {'filename_fmt': 'picked_up_sus_no_pws_%s_%s.rpt', 'menu_text': 'SUs picked up between two LRPs that do not have ... Windows\n (picked_up_sus_no_pws_%s_%s.rpt).', 'other_args': {'config_map_format': 'full', 'pws': False}, 'report': <function picked_up_sus_report>, 'text_fmt': 'Generating report for picked up SUs without plan windows: %s'}, {'filename_fmt': 'picked_up_sus_with_pws_%s_%s.rpt', 'menu_text': 'SUs picked up between two LRPs that have Plan Windows\n (picked_up_sus_with_pws_%s_%s.rpt).', 'other_args': {'config_map_format': 'full', 'pws': True}, 'report': <function picked_up_sus_report>, 'text_fmt': 'Generating report for picked up SUs with plan windows: %s'}, {'filename_fmt': 'gained_pws_%s_%s.rpt', 'menu_text': 'SUs that gained Plan Windows between LRPs\n (gained_pws_%s_%s.rpt).', 'other_args': {'config_map_format': 'full'}, 'report': <function gained_pws_report>, 'text_fmt': 'Generating gained Plan Windows report: %s'}, {'filename_fmt': 'diff_status_%s_%s.rpt', 'menu_text': 'Differences between statuses in the two given LR...he\n current status (diff_status_%s_%s.rpt).', 'other_args': {'config_map_format': 'full'}, 'report': <function diff_status_report>, 'text_fmt': 'Generating status differences report: %s'}, {'filename_fmt': 'changed_fr_%s_%s.rpt', 'menu_text': 'SUs with changed flight ready dates between two LRPs\n (changed_fr_%s_%s.rpt).', 'other_args': {'config_map_format': 'full'}, 'report': <function changed_fr_date_report>, 'text_fmt': 'Generating changed flight ready date report: %s'}, {'filename_fmt': 'diff_pws_%s_%s.rpt', 'menu_text': 'Differences between Plan Windows in two LRPs\n (diff_pws_%s_%s.rpt).', 'other_args': {'config_map_format': 'full'}, 'report': <function diff_pws_report>, 'text_fmt': 'Generating report for changed plan windows: %s'}]
__version__ = '15.06.03'