Commits

Akeem Wells authored 392e77298a1
Fix for Alma-M100-analysis regression, Alma-M100-SD regression to work with runRegression.py
No tags

gcwrap/python/scripts/regressions/tests/alma-m100-analysis.py

Modified
1 -# wrapper script for the ALMA M100 analysis regression test
2 1 import sys
3 2 import os
4 3 import string
5 4 from locatescript import copydata
6 5 from locatescript import locatescript
7 -import inspect
6 +from casa_stack_manip import stack_frame_find
7 +
8 +gl=stack_frame_find( )
8 9
9 10 # Short description
10 11 def description():
11 12 return "Test of a complete ALMA SV data analysis (2 ASDMs from Sept 2011)"
12 13
13 14 pass_on = { "asdm_dataset_name" : "uid___A002_X2a5c2f_X54",
14 15 "asdm_dataset2_name" : "uid___A002_X2a5c2f_X220",
15 16 "tsys_table" : 'cal-tsys_X54.fdm',
16 17 "tsys_table2" : 'cal-tsys_X220.fdm',
17 18 "mask1" : 'M100cont-orig.mask',
18 19 "mask2" : 'M100line-orig.mask',
19 20 "mask3" : 'test-M100line-orig.mask'
20 21 }
21 22
22 -a=inspect.stack()
23 -stacklevel=0
24 -for k in range(len(a)):
25 - if (string.find(a[k][1], 'ipython console') > 0):
26 - stacklevel=k
27 - break
28 -gl=sys._getframe(stacklevel).f_globals
29 23
30 24 def data():
31 25 ### return the data files that are needed by the regression script
32 26 return [pass_on["asdm_dataset_name"],
33 27 pass_on["asdm_dataset2_name"],
34 28 pass_on["tsys_table"],
35 29 pass_on["tsys_table2"],
36 30 pass_on["mask1"],
37 31 pass_on["mask2"],
38 32 pass_on["mask3"]

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut