Changeset 2004 for trunk/python
- Timestamp:
- 02/22/11 20:24:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r1994 r2004 10 10 from asap.env import is_casapy 11 11 from asap._asap import Scantable 12 from asap._asap import filler 12 from asap._asap import filler, msfiller 13 13 from asap.parameters import rcParams 14 14 from asap.logging import asaplog, asaplog_post_dec … … 232 232 if format2 == 'ASAP': 233 233 self._save(name) 234 ## elif format2 == 'MS2': 235 ## msopt = {'ms': {'overwrite': overwrite } } 236 ## from asap._asap import mswriter 237 ## writer = mswriter( self ) 238 ## writer.write( name, msopt ) 234 239 else: 235 240 from asap._asap import stwriter as stw … … 2687 2692 def _check_ifs(self): 2688 2693 #nchans = [self.nchan(i) for i in range(self.nif(-1))] 2689 #nchans = filter(lambda t: t > 0, nchans)2690 2694 nchans = [self.nchan(i) for i in self.getifnos()] 2695 nchans = filter(lambda t: t > 0, nchans) 2691 2696 return (sum(nchans)/len(nchans) == nchans[0]) 2692 2697 … … 2708 2713 for name in fullnames: 2709 2714 tbl = Scantable(stype) 2710 r = filler(tbl) 2711 rx = rcParams['scantable.reference'] 2712 r.setreferenceexpr(rx) 2715 if is_ms( name ): 2716 r = msfiller( tbl ) 2717 else: 2718 r = filler( tbl ) 2719 rx = rcParams['scantable.reference'] 2720 r.setreferenceexpr(rx) 2721 #r = filler(tbl) 2722 #rx = rcParams['scantable.reference'] 2723 #r.setreferenceexpr(rx) 2713 2724 msg = "Importing %s..." % (name) 2714 2725 asaplog.push(msg, False)
Note:
See TracChangeset
for help on using the changeset viewer.