@classmethod<EOL><INDENT>def get_class(cls, name_or_sl):<DEDENT>
try:<EOL><INDENT>return cls.sl_map[int(name_or_sl)]<EOL><DEDENT>except TypeError as e:<EOL><INDENT>raise TypeError("<STR_LIT>".format(name_or_sl, e))<EOL><DEDENT>except ValueError:<EOL><INDENT>try:<EOL><INDENT>return cls.class_map[name_or_sl.lower()]<EOL><DEDENT>except (KeyError, ValueError):<EOL><INDENT>raise NotASummaryName("<STR_LIT>".format(name_or_sl))<EOL><DEDENT><DEDENT>
Return a derived class based on the class name or the summary_level