def index(self, field):
        """Return index of a field"""

        try:
            index = self._field_names.index(unicode(field))
        except __HOLE__:
            raise KeyError("Field list has no field with name '%s'" % unicode(field))

        return index
dataset/ETHPy150Open Stiivi/brewery/brewery/metadata.py/FieldList.index