#NEWLINE# def test_only_params_recorded( self ) : #NEWLINE# #INDENT# prob = Problem ( ) #NEWLINE# prob . root = ConvergeDiverge ( ) #NEWLINE# prob . driver . add_recorder ( self . recorder ) #NEWLINE# self . recorder . options [ 'record_params' ] = True #NEWLINE# self . recorder . options [ 'record_resids' ] = False #NEWLINE# self . recorder . options [ 'record_unknowns' ] = False #NEWLINE# prob . setup ( check = False ) #NEWLINE# ( t0 , t1 ) = run_problem ( prob ) #NEWLINE# prob . cleanup ( ) #NEWLINE# coordinate = [ 0 , 'Driver' , ( 1 , ) ] #NEWLINE# expected_params = [ ( 'comp1.x1' , 2.0 ) , ( 'comp2.x1' , 8.0 ) , ( 'comp3.x1' , 6.0 ) , ( 'comp4.x1' , 4.0 ) , ( 'comp4.x2' , 21.0 ) , ( 'comp5.x1' , 46.0 ) , ( 'comp6.x1' , ( - 93.0 ) ) , ( 'comp7.x1' , 36.8 ) , ( 'comp7.x2' , ( - 46.5 ) ) ] #NEWLINE# self . assertIterationDataRecorded ( ( ( t0 , ( t0 , t1 ) , expected_params , None , None ) , ) , self . eps )