Add scan value tests
@@ -125,6 +125,7 @@ class TestFluxPointFit:
)
ts_diff = profile["stat_scan"] - result.total_stat
+ assert_allclose(model.amplitude.scan_values, [1.92e-13, 2.16e-13, 2.40e-13], rtol=1e-2)
assert_allclose(ts_diff, [174.358204, 0., 174.418515], rtol=1e-2, atol=1e-7)
value = result.parameters["amplitude"].value
@@ -137,6 +138,7 @@ class TestFluxPointFit:
)
ts_diff = profile["stat_scan"] - result.total_stat
+ assert_allclose(model.amplitude.scan_values, [1.92e-13, 2.16e-13, 2.40e-13], rtol=1e-2)
assert_allclose(ts_diff, [174.358204, 0., 174.418515], rtol=1e-2, atol=1e-7)
@staticmethod
