Changeset 981 for trunk/python/asapmath.py
- Timestamp:
- 04/04/06 11:58:41 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapmath.py
r945 r981 41 41 varlist = vars() 42 42 if isinstance(args[0],list): 43 lst = tuple(args[0])43 lst = args[0] 44 44 elif isinstance(args[0],tuple): 45 lst = args[0]45 lst = list(args[0]) 46 46 else: 47 lst = tuple(args)47 lst = list(args) 48 48 49 49 del varlist["kwargs"] 50 50 varlist["args"] = "%d scantables" % len(lst) 51 # need special formatting her for history...51 # need special formatting here for history... 52 52 53 53 from asap._asap import stmath … … 63 63 if scanav: scanav = "SCAN" 64 64 else: scanav = "NONE" 65 s = scantable(stm._average(lst, mask, weight, scanav, align)) 65 alignedlst = [] 66 if align: 67 refepoch = lst[0].get_time(0) 68 for scan in lst: 69 alignedlst.append(scan.freq_align(refepoch,insitu=False)) 70 else: 71 aligendlst = lst 72 s = scantable(stm._average(alignedlst, mask, weight, scanav)) 66 73 s._add_history("average_time",varlist) 67 74 print_log()
Note: See TracChangeset
for help on using the changeset viewer.