casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
sim_testcube.py
Go to the documentation of this file.
00001 # simulation tasks regression
00002 #
00003 #  single pointing
00004 #  * cube
00005 #  single interferometric measurement
00006 #  no noise
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 # Short description
00021 def description():
00022     return "Simulates a single 12m ALMA pointing from a model cube. No noise, imaged."
00023 
00024 
00025 def run():
00026     #####locate the regression script
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 ###return the images that will be templated and compared in future runs
00035     return ['tc2/tc2.alma.out01.ms']
00036 
00037 
00038 def data():
00039     ### return the data files that is needed by the regression script
00040     return []
00041 
00042 
00043 
00044