Add error check for flux points dataset stat profile
@@ -124,6 +124,7 @@ class TestFluxPointFit:
ts_diff = profile["stat_scan"] - result.total_stat
assert_allclose(ts_diff, [174.358204, 0., 174.418515], rtol=1e-2, atol=1e-7)
+ assert_allclose(model.amplitude.error, 1e-12)
value = result.parameters["amplitude"].value
err = result.parameters["amplitude"].error
@@ -136,6 +137,7 @@ class TestFluxPointFit:
ts_diff = profile["stat_scan"] - result.total_stat
assert_allclose(ts_diff, [174.358204, 0., 174.418515], rtol=1e-2, atol=1e-7)
+ assert_allclose(model.amplitude.error, 1e-12)
@staticmethod
@requires_dependency("matplotlib")
