#NEWLINE# def from_map( self , schema , inopfams ) : #NEWLINE# #INDENT# 'Initalize the dict of operator families by converting the input map\n\n        :param schema: schema owning the operators\n        :param inopfams: YAML map defining the operator families\n        ' #NEWLINE# for key in inopfams : #NEWLINE# #INDENT# if ( ( not key . startswith ( 'operator family ' ) ) or ( not ( ' using ' in key ) ) ) : #NEWLINE# #INDENT# raise KeyError ( ( 'Unrecognized object type: %s' % key ) ) #NEWLINE# #UNINDENT# pos = key . rfind ( ' using ' ) #NEWLINE# opf = key [ 16 : pos ] #NEWLINE# idx = key [ ( pos + 7 ) : ] #NEWLINE# inopfam = inopfams [ key ] #NEWLINE# self [ ( schema . name , opf , idx ) ] = opfam = OperatorFamily ( schema = schema . name , name = opf , index_method = idx ) #NEWLINE# for ( attr , val ) in list ( inopfam . items ( ) ) : #NEWLINE# #INDENT# setattr ( opfam , attr , val ) #NEWLINE# #UNINDENT# if ( 'oldname' in inopfam ) : #NEWLINE# #INDENT# opfam . oldname = inopfam [ 'oldname' ] #NEWLINE# #UNINDENT# if ( 'description' in inopfam ) : #NEWLINE# #INDENT# opfam . description = inopfam [ 'description' ]