Coverage for command_line : 71%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
version: 1 formatters: file_style: format: '* %(asctime)s - %(name)s - %(levelname)s (%(filename)s > %(funcName)s > %(lineno)d) - %(message)s ' datefmt: '%Y/%m/%d %H:%M:%S' console_style: format: '* %(asctime)s - %(levelname)s: %(filename)s:%(funcName)s:%(lineno)d > %(message)s' datefmt: '%H:%M:%S' html_style: format: '<div id="row" class="%(levelname)s"><span class="date">%(asctime)s</span> <span class="label">file:</span><span class="filename">%(filename)s</span> <span class="label">method:</span><span class="funcName">%(funcName)s</span> <span class="label">line#:</span><span class="lineno">%(lineno)d</span> <span class="pathname">%(pathname)s</span> <div class="right"><span class="message">%(message)s</span><span class="levelname">%(levelname)s</span></div></div>' datefmt: '%Y-%m-%d <span class= "time">%H:%M <span class= "seconds">%Ss</span></span>' handlers: console: class: logging.StreamHandler level: DEBUG formatter: console_style stream: ext://sys.stdout root: level: DEBUG handlers: [console]"""
## LAST MODIFIED : August 17, 2013 ## CREATED : August 17, 2013 ## AUTHOR : DRYX argv=None): """print the help for python module
**Key Arguments:** - ``argv`` -- arguments for the function """ ################ > IMPORTS ################ ## STANDARD LIB ## ## THIRD PARTY ## ## LOCAL APPLICATION ##
## VARIABLES ##
pathToModuleFile = argv[1]
basename = os.path.basename(pathToModuleFile).replace(".py","") print basename
return None
## LAST MODIFIED : August 20, 2013 ## CREATED : August 20, 2013 ## AUTHOR : DRYX """Usage: fits_print_fits_header
convert fits header to python dictionary
**Key Arguments:** ``argv`` -- arguments for the function
""" ################ > IMPORTS ################ ## STANDARD LIB ## ## THIRD PARTY ## ## LOCAL APPLICATION ##
## VARIABLES ##
pathToFitsFile = argv[1]
hduList = pf.open(pathToFitsFile) fitsHeader=hduList[0].header
thisDict = dft.convert_fits_header_to_dictionary( log, fitsHeader=pathToFitsFile )
fitsHeader = hduList[0].header cardList = fitsHeader.ascardlist() print cardList hduList.close()
return None
# from . import joke
# def main(): # print joke() |