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 mosaic 12m ALMA pointings from a components list. No noise, imaged."
00023
00024
00025 def data():
00026
00027 return []
00028
00029
00030 def run(fetch=False):
00031
00032 lepath=locatescript('testcompsim.py')
00033 print 'Script used is ',lepath
00034 gl['regstate']=True
00035 execfile(lepath, gl)
00036 print 'regstate =', gl['regstate']
00037 if not gl['regstate']:
00038 raise Exception, 'regstate = False'
00039
00040 return ['cltest/cltest.alma.cycle0.extended.ms','cltest/cltest.alma.cycle0.extended.image','cltest/cltest.alma.cycle0.extended.diff']
00041