#NEWLINE# def extractDictionary( self , metrics ) : #NEWLINE# #INDENT# '\n        Extract required fields from an array\n        ' #NEWLINE# new_metrics = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for m in metrics : #NEWLINE# #INDENT# metric = self . extractFields ( m ) #NEWLINE# new_metrics [ metric [ 'name' ] ] = metric #NEWLINE# #UNINDENT# return new_metrics