Next / Previous / Contents / NM Tech homepage

6.23. CBCData.genCirclesByName()

pycbc.py
# - - -   C B C D a t a . g e n C i r c l e s B y N a m e

    def genCirclesByName(self, prefix):
        '''Generate circles whose names starts with (prefix).
        '''
        q = self.s.query(self.Circle).filter(
                self.Circle.cir_name.like("%s%%" % prefix))
        for row in q:
            yield row