@@ -203,21 +203,21 @@ def test_fit_trace_all_nan_cols(self):
203203 4.6474359 , 5.25 , 5.8525641 , 6.4551282 , 7.0576923 ,
204204 7.6602564 ]
205205 max_trace = FitTrace (img , peak_method = 'max' )
206- np .testing .assert_allclose (truth , max_trace .trace )
206+ np .testing .assert_allclose (truth , max_trace .trace , atol = 0.05 , rtol = 1e-2 )
207207
208208 # peak_method = 'gaussian'
209209 truth = [1.947455 , 2.383634 , 2.8198131 , 3.2559921 , 3.6921712 ,
210210 4.1283502 , 4.5645293 , 5.0007083 , 5.4368874 , 5.8730665 ,
211211 6.3092455 ]
212212 max_trace = FitTrace (img , peak_method = 'gaussian' )
213- np .testing .assert_allclose (truth , max_trace .trace )
213+ np .testing .assert_allclose (truth , max_trace .trace , atol = 0.05 , rtol = 1e-2 )
214214
215215 # peak_method = 'centroid'
216216 truth = [2.5318835 , 2.782069 , 3.0322546 , 3.2824402 , 3.5326257 ,
217217 3.7828113 , 4.0329969 , 4.2831824 , 4.533368 , 4.7835536 ,
218218 5.0337391 ]
219219 max_trace = FitTrace (img , peak_method = 'centroid' )
220- np .testing .assert_allclose (truth , max_trace .trace )
220+ np .testing .assert_allclose (truth , max_trace .trace , atol = 0.05 , rtol = 1e-2 )
221221
222222 @pytest .mark .filterwarnings ("ignore:The fit may be unsuccessful" )
223223 @pytest .mark .filterwarnings ("ignore:Model is linear in parameters" )
0 commit comments