#NEWLINE# def save_final_config( self , configuration ) : #NEWLINE# #INDENT# '\n    called at the end of autotuning with the best\n    resultsdb.models.Configuration\n    ' #NEWLINE# with open ( args . program_cfg_output , 'w' ) as fd : #NEWLINE# #INDENT# cfg = self . build_config ( configuration . data ) #NEWLINE# for ( k , v ) in sorted ( cfg . items ( ) ) : #NEWLINE# #INDENT# ( ( print >> fd ) , k , '=' , configuration ) #NEWLINE# #UNINDENT# #UNINDENT# log . info ( 'final configuration written to %s' , args . program_cfg_output )