Go to the documentation of this file.00001 import sys
00002 import os
00003 import string
00004 from locatescript import copydata
00005 from locatescript import locatescript
00006 import inspect
00007
00008 a=inspect.stack()
00009 stacklevel=0
00010 for k in range(len(a)):
00011 if (string.find(a[k][1], 'ipython console') > 0):
00012 stacklevel=k
00013 break
00014 gl=sys._getframe(stacklevel).f_globals
00015
00016
00017 def description():
00018 return 'Regression tests for 3C219D'
00019
00020 def data():
00021
00022 return ['3C219D_CAL.UVFITS','rgn3C219D.rgn']
00023
00024 def run( fetch=False ):
00025
00026
00027 if fetch:
00028 for f in data( ):
00029 copydata( f, os.getcwd( ) )
00030
00031
00032 lepath=locatescript('3C219D_regression.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 []