Changeset 762 for trunk/python
- Timestamp:
- 11/30/05 14:37:54 (19 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r753 r762 105 105 if self._panelling == 't': 106 106 maxrows = 25 107 if self._data[0].nrow() > maxrows :107 if self._data[0].nrow() > maxrows and not (self._rows and self._cols): 108 108 if self._cursor["t"] is None or \ 109 109 (isinstance(self._cursor["t"],list) and \ … … 149 149 self._plotter.set_panels() 150 150 rows = self._cursor["t"] 151 rows = rows[:n] 151 152 self._plotter.palette(0) 152 153 for rowsel in rows: … … 721 722 if rcParams['verbose']: 722 723 print msg 723 return 724 return 724 725 else: 725 726 raise IndexError(msg) … … 735 736 if rcParams['verbose']: 736 737 print msg 737 return 738 return 738 739 else: 739 740 raise IndexError(msg) … … 750 751 if rcParams['verbose']: 751 752 print msg 752 return 753 return 753 754 else: 754 755 raise IndexError(msg) … … 787 788 if rcParams['verbose']: 788 789 print msg 789 return 790 return 790 791 else: 791 raise TypeError(msg) 792 raise TypeError(msg) 792 793 elif 0 > i >= n: 793 794 print "Pol index '%d' out of range" %i 794 795 if rcParams['verbose']: 795 796 print msg 796 return 797 else: 798 raise IndexError(msg) 797 return 798 else: 799 raise IndexError(msg) 799 800 else: 800 801 pols.append(i) … … 818 819 if rcParams['verbose']: 819 820 print msg 820 return 821 return 821 822 else: 822 raise RuntimeError(msg) 823 raise RuntimeError(msg) 823 824 if isinstance(mask, array): 824 825 self._usermask = mask -
trunk/python/scantable.py
r742 r762 69 69 r._open(filename,ifSel,beamSel) 70 70 asaplog.push('Importing data...') 71 print_log() 71 72 r._read([-1]) 72 73 tbl = r._getdata() … … 76 77 from asap._asap import average as _av 77 78 asaplog.push('Auto averaging integrations...') 79 print_log() 78 80 tbl2 = _av((tbl,),(),True,'none') 79 81 sdtable.__init__(self,tbl2)
Note:
See TracChangeset
for help on using the changeset viewer.