casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
cleanchan_test.py
Go to the documentation of this file.
00001 import sys
00002 import os
00003 import string
00004 from locatescript import copydata
00005 from locatescript import locatescript
00006 import inspect
00007 
00008 a=inspect.stack()
00009 stacklevel=0
00010 for k in range(len(a)):
00011     if (string.find(a[k][1], 'ipython console') > 0):
00012         stacklevel=k
00013         break
00014 gl=sys._getframe(stacklevel).f_globals
00015 
00016 # Short description
00017 def description():
00018     return "Test clean spw and channelization in various ways"
00019 
00020 def run( fetch=False ):
00021     #####locate the regression script
00022     lepath=locatescript('cleanchan_regression.py')
00023     print 'Script used is ',lepath
00024     gl['regstate']=True
00025     execfile(lepath, gl)
00026     print 'regstate =', gl['regstate']
00027     if not gl['regstate']:
00028         raise Exception, 'regstate = False'
00029 ###return the images that will be templated and compared in future runs
00030     return []
00031 
00032 def data():
00033     ### return the data files that is needed by the regression script
00034     return []