Changeset 1337
- Timestamp:
- 04/20/07 10:48:08 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/selector.py
r1045 r1337 157 157 def get_order(self): 158 158 return list(self._getorder()) 159 def get_taql(self): 160 return self._gettaql() 159 def get_query(self): 160 prefix = "SELECT FROM $1 WHERE " 161 return self._gettaql().replace(prefix, "") 161 162 def get_name(self): 162 163 print "NYI" 163 164 s = self._gettaql() 164 return "" 165 165 return 166 def __str__(self): 167 out = "" 168 d = {"SCANNO": self.get_scans(), 169 "CYCLENO": self.get_cycles(), 170 "BEAMNO": self.get_beams(), 171 "IFNO": self.get_ifs(), 172 "Pol Type": self.get_poltypes(), 173 "POLNO": self.get_pols(), 174 "QUERY": self.get_query(), 175 "Sort Order": self.get_order() 176 } 177 for k,v in d.iteritems(): 178 if v: 179 out += "%s: %s\n" % (k, v) 180 if len(out): 181 return out[:-1] 182 else: 183 return out 166 184 def __add__(self, other): 167 185 """ … … 178 196 vec.sort() 179 197 v[2](unique(vec)) 180 union._settaql(other._gettaql()) 198 199 union.set_query(other.get_query() + " AND " + self.get_query()) 181 200 return union
Note:
See TracChangeset
for help on using the changeset viewer.