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