@@ -801,7 +801,7 @@ def tenpar_fixed_test2():
801801def tenpar_fixed_test3 ():
802802 """tenpar fixed test 2"""
803803 model_d = "ies_10par_xsec"
804- test_d = os .path .join (model_d , "master_fixed2 " )
804+ test_d = os .path .join (model_d , "master_fixed3 " )
805805 template_d = os .path .join (model_d , "template" )
806806 pst = pyemu .Pst (os .path .join (template_d ,"pest.pst" ))
807807 pst .control_data .noptmax = 2
@@ -818,9 +818,9 @@ def tenpar_fixed_test3():
818818 pst .pestpp_options ["ies_num_reals" ] = 10
819819 pst .pestpp_options .pop ("ies_par_en" ,None )
820820 pst .pestpp_options ["ies_par_en" ] = "par_fixed.csv"
821-
821+ scale = 10
822822 pst .parameter_data .loc ["k_01" ,"partrans" ] = "fixed"
823- pst .parameter_data .loc ["k_01" ,"scale" ] = 10.0
823+ pst .parameter_data .loc ["k_01" ,"scale" ] = scale
824824 pst .pestpp_options ["ies_lambda_mults" ] = 1.0
825825 pst .pestpp_options ["lambda_scale_fac" ] = 1.0
826826 pst .pestpp_options ["ies_save_binary" ] = False
@@ -854,15 +854,15 @@ def tenpar_fixed_test3():
854854 #df = df.iloc[:-1, :]
855855 #df.index = pe.index
856856 print (itr ,pe .loc [:,"k_01" ].values ,oe .loc [:,"k_01" ].values )
857- d = pe .loc [:,"k_01" ].values - oe .loc [:,"k_01" ].values
857+ d = ( pe .loc [:,"k_01" ].values * scale ) - oe .loc [:,"k_01" ].values
858858 assert np .abs (d .max ()) < 1e-6
859859 if prev is not None :
860860 d = prev - oe .loc [:,"k_01" ].values
861861 assert np .abs (d .max ()) < 1e-6
862862
863863 prev = oe .loc [:,"k_01" ].values
864864
865- test_d = os .path .join (model_d , "master_fixed2 " )
865+ test_d = os .path .join (model_d , "master_fixed3 " )
866866 template_d = os .path .join (model_d , "template" )
867867 pst = pyemu .Pst (os .path .join (template_d ,"pest.pst" ))
868868 pst .control_data .noptmax = 2
@@ -881,7 +881,7 @@ def tenpar_fixed_test3():
881881 pst .pestpp_options ["ies_par_en" ] = "par_fixed.csv"
882882
883883 pst .parameter_data .loc ["k_01" ,"partrans" ] = "fixed"
884- pst .parameter_data .loc ["k_01" ,"scale" ] = 10.0
884+ pst .parameter_data .loc ["k_01" ,"scale" ] = scale
885885 pst .pestpp_options ["ies_lambda_mults" ] = 1.0
886886 pst .pestpp_options ["lambda_scale_fac" ] = 1.0
887887 pst .pestpp_options ["ies_save_binary" ] = False
@@ -915,7 +915,7 @@ def tenpar_fixed_test3():
915915 #df = df.iloc[:-1, :]
916916 #df.index = pe.index
917917 print (itr ,pe .loc [:,"k_01" ].values ,oe .loc [:,"k_01" ].values )
918- d = pe .loc [:,"k_01" ].values - oe .loc [:,"k_01" ].values
918+ d = ( pe .loc [:,"k_01" ].values * scale ) - oe .loc [:,"k_01" ].values
919919 assert np .abs (d .max ()) < 1e-6
920920 if prev is not None :
921921 d = prev - oe .loc [:,"k_01" ].values
@@ -2502,9 +2502,9 @@ def tenpar_ineq_test():
25022502 #shutil.copy2(os.path.join("..", "exe", "windows", "x64", "Debug", "pestpp-ies.exe"),
25032503 # os.path.join("..", "bin", "win","pestpp-ies.exe"))
25042504 #invest()
2505- tenpar_ineq_test ()
2505+ # tenpar_ineq_test()
25062506 #tenpar_restart_similar_test()
2507- #tenpar_fixed_test ()
2507+ tenpar_fixed_test3 ()
25082508 # tenpar_full_cov_test()
25092509 # eval_freyberg_full_cov_reorder()
25102510 #test_freyberg_full_cov_reorder()
0 commit comments