Ignore:
Timestamp:
02/10/10 19:39:06 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-1908

Ready to Release: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes

Module(s): Module Names change impacts.

Description: Describe your changes here...

Changed a tagging as the source type is tagged by using SRCTYPE, not
an extra string in SRCNAME. To do this, I have defined a selection method
by SRCTYPE in STSelector class. I have newly added python_SrcType.cpp
that defines a Python interface of SrcType? enums which is defined
in atnf/PKSIO/SrcType.h.

Since I have added new file in the src directory, I have modified src/Makefile
to compile new file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/python/selector.py

    r1639 r1693  
    159159        if isinstance(vec,list):
    160160            self._setrows(vec)
     161        else:
     162            raise TypeError('Unknown row number type. Use lists of integers.')
     163
     164    def set_types(self, types=[]):
     165        """
     166        Set a sequence of source types.
     167        Parameters:
     168            types:    a list of integers. Default [] is to unset the selection.
     169        """
     170        vec = _to_list(types, int)
     171        if isinstance(vec,list):
     172            self._settypes(vec)
    161173        else:
    162174            raise TypeError('Unknown row number type. Use lists of integers.')
     
    176188    def get_order(self):
    177189        return list(self._getorder())
     190    def get_types(self):
     191        return list(self._gettypes())
    178192    def get_query(self):
    179193        prefix = "SELECT FROM $1 WHERE "
Note: See TracChangeset for help on using the changeset viewer.