77
88import burnman
99from burnman .optimize .eos_fitting import fit_XPTp_data
10- from burnman .optimize .nonlinear_fitting import nonlinear_least_squares_fit
10+ from burnman .optimize .nonlinear_fitting import (
11+ NonLinearModel ,
12+ nonlinear_least_squares_fit ,
13+ )
1114from burnman .utils .misc import attribute_function , pretty_string_values
1215from burnman .optimize .composition_fitting import fit_composition_to_solution
1316
@@ -24,7 +27,7 @@ def test_linear_fit(self):
2427 data = np .array ([x , y ]).T
2528 cov = np .array ([[1.0 / Wx , 0.0 * Wx ], [0.0 * Wy , 1.0 / Wy ]]).T
2629
27- class m :
30+ class m ( NonLinearModel ) :
2831 def __init__ (self , data , cov , guessed_params , delta_params ):
2932 self .data = data
3033 self .data_covariances = cov
@@ -63,7 +66,7 @@ def test_polynomial_fit(self):
6366 data = np .array ([x , y ]).T
6467 cov = np .array ([[1.0 / Wx , 0.0 * Wx ], [0.0 * Wy , 1.0 / Wy ]]).T
6568
66- class m :
69+ class m ( NonLinearModel ) :
6770 def __init__ (self , data , cov , guessed_params , delta_params ):
6871 self .data = data
6972 self .data_covariances = cov
0 commit comments