@classmethod<EOL><INDENT>def find(cls, name):<DEDENT>
try:<EOL><INDENT>return cls._member_map_[name]<EOL><DEDENT>except KeyError:<EOL><INDENT>for ctype in cls._member_map_.values():<EOL><INDENT>if ctype.name == name:<EOL><INDENT>return ctype<EOL><DEDENT><DEDENT>raise ValueError('<STR_LIT>' % (name, cls.__name__))<EOL><DEDENT>
Returns the NDS2 channel type corresponding to the given name