Changeset 1349 for trunk


Ignore:
Timestamp:
04/26/07 14:33:19 (18 years ago)
Author:
mar637
Message:

added american spelling alias
fixed concatenation of queries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/selector.py

    r1337 r1349  
    4545        else:
    4646            raise TypeError('Unknown pol type. Please use [0,1...] or ["XX","YY"...]')
     47   
     48    # for the americans
     49    set_polarization = set_polarisations
    4750
    4851    def set_ifs(self, ifs=[]):
     
    196199            vec.sort()
    197200            v[2](unique(vec))
    198        
    199         union.set_query(other.get_query() + " AND " + self.get_query())
     201        q = other.get_query()
     202        qs = self.get_query()
     203        if len(q) and len(qs):
     204            union.set_query(qs +" AND " + q)
     205        else:
     206            if len(q):
     207                union.set_query(q)
     208            elif len(qs):
     209                union.set_query(qs)
    200210        return union
Note: See TracChangeset for help on using the changeset viewer.