casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
listhistory.py
Go to the documentation of this file.
00001 #
00002 # This file was generated using xslt from its XML file
00003 #
00004 # Copyright 2009, Associated Universities Inc., Washington DC
00005 #
00006 import sys
00007 import os
00008 from  casac import *
00009 import string
00010 from taskinit import casalog
00011 #from taskmanager import tm
00012 import task_listhistory
00013 def listhistory(vis=''):
00014 
00015         """List the processing history of a dataset:
00016 
00017         The list of all task processing steps in a visibility data set
00018         are listed in the logger.
00019 
00020         Keyword arguments:
00021         vis -- Name of input visibility file 
00022                 default: none; example: vis='ngc5921.ms'
00023         async -- Run asynchronously 
00024                     default = False; do not run asychronously
00025  
00026         """
00027 
00028 #
00029 #    The following is work around to avoid a bug with current python translation
00030 #
00031         mytmp = {}
00032 
00033         mytmp['vis'] = vis
00034         pathname='file:///'+os.environ.get('CASAPATH').split()[0]+'/share/xml/'
00035         trec = casac.utils().torecord(pathname+'listhistory.xml')
00036 
00037         casalog.origin('listhistory')
00038         if trec.has_key('listhistory') and casac.utils().verify(mytmp, trec['listhistory']) :
00039             result = task_listhistory.listhistory(vis)
00040 
00041         else :
00042           result = False
00043         return result