Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 import os, time, string, sys, inspect
00009 from locatescript import locatescript
00010
00011 a=inspect.stack()
00012 stacklevel=0
00013 for k in range(len(a)):
00014 if (string.find(a[k][1], 'ipython console') > 0):
00015 stacklevel=k
00016 break
00017 gl=sys._getframe(stacklevel).f_globals
00018
00019
00020
00021 def description():
00022 return "Simulates a single 12m ALMA pointing from a model cube. No noise, imaged."
00023
00024
00025 def run():
00026
00027 lepath=locatescript('testcube2_regression.py')
00028 print 'Script used is ',lepath
00029 gl['regstate']=True
00030 execfile(lepath, gl)
00031 print 'regstate =', gl['regstate']
00032 if not gl['regstate']:
00033 raise Exception, 'regstate = False'
00034
00035 return ['tc2/tc2.alma.out01.ms']
00036
00037
00038 def data():
00039
00040 return []
00041
00042
00043
00044