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 "PdB, flagging, calibration, imaging"
00017
00018 def data():
00019
00020 return []
00021
00022 def run(fetch=False):
00023 lepath=locatescript('l02d_regression.py')
00024 print 'Script used is ',lepath
00025 gl['regstate']=True
00026 execfile(lepath, gl)
00027 print 'regstate =', gl['regstate']
00028 if not gl['regstate']:
00029 raise Exception, 'regstate = False'
00030
00031
00032 return ['l2.3mmcont.image', 'l2.1mm.image', 'l02d.3mmcont.image', 'l02d.1mmcont.image', 'l02d.c34s.image', 'l02d.ch3oh.image' ]