Source
import sys
import os
import string
from locatescript import locatescript
import inspect
a=inspect.stack()
stacklevel=0
for k in range(len(a)):
if (string.find(a[k][1], 'ipython console') > 0):
stacklevel=k
break
gl=sys._getframe(stacklevel).f_globals
def description():
return "PdB, calibration, imaging"
def data():
### return the data files that is needed by the regression script
return []
def run(fetch=False):
lepath=locatescript('h121_regression.py')
print 'Script used is ',lepath
gl['regstate']=True
execfile(lepath, gl)
print 'regstate =', gl['regstate']
if not gl['regstate']:
raise Exception, 'regstate = False'
# import lepath+'/g192_regression.py'
###resturn the images that will be templated and compared in future runs
return ['nrao150.3mm.image', 'h121.co10.image', '0224b.3mm.image', 'h121b.co10.image', 'h121all.3mm.image', 'h121c.co10.image' ]