casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
sim_ppdisk.py
Go to the documentation of this file.
00001 # simulation tasks regression
00002 #
00003 #  single pointing
00004 #  single interferometric measurement
00005 #  no noise
00006 
00007 import os, time, string, sys, inspect
00008 from locatescript import locatescript
00009 
00010 a=inspect.stack()
00011 stacklevel=0
00012 for k in range(len(a)):
00013     if (string.find(a[k][1], 'ipython console') > 0):
00014         stacklevel=k
00015         break
00016 gl=sys._getframe(stacklevel).f_globals
00017 
00018 
00019 # Short description
00020 def description():
00021     return "Simulates a single 12m ALMA pointing from a model image. noise, imaged."
00022 
00023 
00024 def data():
00025     ### return the data files that is needed by the regression script
00026     return []
00027 
00028 
00029 def run(fetch=False):
00030     #####locate the regression script
00031     lepath=locatescript('ppdisk2_regression.py')
00032     print 'Script used is ',lepath
00033     gl['regstate']=True
00034     execfile(lepath, gl)
00035     print 'regstate =', gl['regstate']
00036     if not gl['regstate']:
00037         raise Exception, 'regstate = False'
00038 ###return the images that will be templated and compared in future runs
00039     return ['psim2/psim2.alma.out20.noisy.ms','psim2/psim2.alma.out20.noisy.image','psim2/psim2.alma.out20.noisy.diff']
00040