parameters: (cls, compId)
return_statement: return matches[0]
docstring: Get a complexity from its identifier.
docstring_summary: Get a complexity from its identifier.
docstring_tokens: Get a complexity from its identifier .
function: def fromId(cls, compId):
          """
          Get a complexity from its identifier.
          """
          matches = [comp for comp in cls._ordered if comp.id == compId]
          if len(matches) == 0:
              raise ValueError("No complexity with id '{}'".format(compId))
          return matches[0]
function_tokens: def fromId ( cls , compId ) : matches = [ comp for comp in cls . _ordered if comp . id == compId ] if len ( matches ) == 0 : raise ValueError ( "No complexity with id '{}'" . format ( compId ) ) return matches [ 0 ]