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

Поисковые слова: обвмадеойс нефептощи рпфплпч
Python: module metric_cycle_weekly
 
 
metric_cycle_weekly (version 15.04.29)
index
metric_cycle_weekly.py

Checks for CYCLE  weekly metric file, processes it and publishes them
 
TITLE:      metric_cycle_weekly.py
DEVELOPER:  Alan Patterson, 20-Mar-2008
 
PURPOSE:    The tool checks for the existence of CYCLE weekly metric data,
             retrieves and processes it into updated tables (text and
             Excel) and plots (completion and submission)
 
USAGE:      do metric_snap_weekly             [-verbose]
                                              [-nodelete]
                                              [-nocleanup]
 
             where: -verbose     causes informational messages to appear.
 
 RETURNS:   Nothing
 
 MOD HISTORY:
     o force PDF backend                       app 041408
     o fix call to metplot.bar_plot2           drc 042108
     o update for metplot change               app 061308
     o Python 2.5 and testmode                 app 072909
     o code cleanup                            drc 042815

 
Modules
       
matplotlib
metplot
os
spss_sys_util
spst_getopt
sys
time_util

 
Functions
       
make_weekly_plots(cycletable, outplotfil1, outplotfil2, cflag)
Produce Snap Submission and Completion Bar Charts
cycletable     is the table from an input metric file
                        cycle.txt
outplotfil1     is the submission plot file name
outplotfil2     is the submission plot file name
run(*args)
Checks for SNAP metric data in input area, retrieves it, processes it
and publishes results to output area.
    Tables are updated (text and Excel) and plots are produced.
 
Usage:
    do metric_cycle_weekly [-verbose] [-noupdate] [-nodelete] [-nocleanup]
 
            where      -verbose       causes information messages
                       -noupdate      prevents modifying the tables
                       -nodelete      prevents deleting of input files
                       -nocleanup     prevents deleting of output files

 
Data
        ALERTADDR = ['jferrara@stsci.edu', 'workman@stsci.edu']
BASE_DIR = 'inside-access/metrics'
FTPDICT = {'base_dir': 'inside-access/metrics', 'host': 'ftp.stsci.edu', 'nofilestring': 'No files in directory', 'user': 'anonymous', 'word': 'planinst@stsci.edu'}
HOST = 'ftp.stsci.edu'
METRIC_DICT = {'indir': 'CYSTAT_in', 'infiles': ['cycle.txt'], 'name': 'Weekly Cycle', 'outdir': 'CYSTAT_out', 'outfiles': ['cycle.txt', 'cycle.xls', 'completion.pdf', 'submission.pdf'], 'plotext': '.pdf', 'table': None}
NOFILESTRING = 'No files in directory'
USER = 'anonymous'
WORD = 'planinst@stsci.edu'
__author__ = 'Alan Patterson'
__version__ = '15.04.29'

 
Author
        Alan Patterson