Go to the documentation of this file.00001
00002
00003
00004
00005
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
00020 def description():
00021 return "Simulates a single 12m ALMA pointing from a model image. noise, imaged."
00022
00023
00024 def data():
00025
00026 return []
00027
00028
00029 def run(fetch=False):
00030
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
00039 return ['psim2/psim2.alma.out20.noisy.ms','psim2/psim2.alma.out20.noisy.image','psim2/psim2.alma.out20.noisy.diff']
00040