casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
task_listhistory.py
Go to the documentation of this file.
00001 import os
00002 from taskinit import *
00003 
00004 def listhistory(vis=None):
00005         """List the processing history of a dataset:
00006         The list of all task processing steps will be
00007         given in the logger.
00008 
00009         Keyword arguments:
00010         vis -- Name of input visibility file (MS)
00011                 default: none; example: vis='ngc5921.ms'
00012 
00013         """
00014         #Python script
00015         try:
00016                 if ((type(vis)==str) & (os.path.exists(vis))):
00017                         ms.open(vis)
00018                 else:
00019                         raise Exception, 'Visibility data set not found - please verify the name'
00020                 ms.listhistory()
00021                 ms.close()
00022         except Exception, instance:
00023                 print '*** Error ***',instance