Changeset 1045
- Timestamp:
- 04/28/06 09:58:46 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/selector.py
r963 r1045 38 38 """ 39 39 vec = _to_list(pols, str) or _to_list(pols, int) 40 if vec: # is an empty and/or valid vector40 if isinstance(vec, list): # is an empty and/or valid vector 41 41 if len(vec) and isinstance(vec[-1],str): 42 42 self._setpolstrings(vec) … … 53 53 """ 54 54 vec = _to_list(ifs, int) 55 if vec:55 if isinstance(vec,list): 56 56 self._setifs(vec) 57 57 else: … … 65 65 """ 66 66 vec = _to_list(scans, int) 67 if vec:67 if isinstance(vec,list): 68 68 self._setscans(vec) 69 69 else: … … 77 77 """ 78 78 vec = _to_list(beams, int) 79 if vec:79 if isinstance(vec,list): 80 80 self._setbeams(vec) 81 81 else: … … 89 89 """ 90 90 vec = _to_list(cycles, int) 91 if vec:91 if isinstance(vec,list): 92 92 self._setcycles(vec) 93 93 else: … … 139 139 Set the order the scantable should be sorted by. 140 140 Parameters: 141 order: The list of column n maes to sort by in order141 order: The list of column names to sort by in order 142 142 """ 143 143 self._setorder(order)
Note:
See TracChangeset
for help on using the changeset viewer.