Changeset 1930 for trunk/python


Ignore:
Timestamp:
09/17/10 17:20:14 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

  1. Added selector.get_row().
  2. Constructor allows to set rows and types.
  3. Selection summary string contains SRCTYPE and ROW selection.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/selector.py

    r1927 r1930  
    88    scantables to specific rows.
    99    """
    10     fields = ["pols", "ifs", "beams", "scans", "cycles", "name", "query", "types"]
     10    fields = ["pols", "ifs", "beams", "scans", "cycles", "name", "query", "types", "rows"]
    1111
    1212    def __init__(self, *args, **kw):
     
    216216    def get_types(self):
    217217        return list(self._gettypes())
     218    def get_rows(self):
     219        return list(self._getrows())
    218220    def get_query(self):
    219221        prefix = "SELECT FROM $1 WHERE "
     
    233235             "POLNO": self.get_pols(),
    234236             "QUERY": self.get_query(),
     237             "SRCTYPE": self.get_types(),
     238             "ROWS": self.get_rows(),
    235239             "Sort Order": self.get_order()
    236240             }
Note: See TracChangeset for help on using the changeset viewer.