pycbc: A Python interface
to the Christmas Bird Count database
8.10. MyCBC.genCens(): Generate census records
for one circle-year
mycbc.py
# - - - M y C B C . g e n C e n s
def genCens(self, count_id):
'''Generate the census rows for one circle-year.
'''
q = self.s.query(self.Cen).filter_by(count_id=count_id)
for row in q:
yield row