Next / Previous / Contents / NM Tech homepage

6.7. The physios table

This table defines the codes for physiographic strata.

pycbc.py
    physios_table = schema.Table('physios', meta,
        schema.Column('physio_code', types.CHAR(2), primary_key=True),
        schema.Column('physio_name', types.VARCHAR(30)))

    class Physio(object):
        def __init__(self, physio_code, physio_name):
            self.physio_code = physio_code
            self.physio_name = physio_name
        def __repr__(self):
            return ( "<Physio(%s=%s)>" %
                     (self.physio_code, self.physio_name) )