Adapt light estimator tests
@@ -394,10 +394,10 @@ def test_lightcurve_estimator_map_datasets():
assert_allclose(lightcurve.table["ref_eflux"], [4.60517e-11, 4.60517e-11])
assert_allclose(lightcurve.table["ref_e2dnde"], [1e-11, 1e-11])
assert_allclose(lightcurve.table["stat"], [-87412.393367, -89856.129206], rtol=1e-2)
- assert_allclose(lightcurve.table["norm"], [0.960233, 1.007574], rtol=1e-2)
- assert_allclose(lightcurve.table["norm_err"], [0.037565, 0.038417], rtol=1e-2)
- assert_allclose(lightcurve.table["sqrt_ts"], [38.067567, 39.531903], rtol=1e-2)
- assert_allclose(lightcurve.table["ts"], [1449.139654, 1562.771374], rtol=1e-2)
+ assert_allclose(lightcurve.table["norm"], [0.972535, 0.995933], rtol=1e-2)
+ assert_allclose(lightcurve.table["norm_err"], [0.037293, 0.037806], rtol=1e-2)
+ assert_allclose(lightcurve.table["sqrt_ts"], [39.568557, 39.934953], rtol=1e-2)
+ assert_allclose(lightcurve.table["ts"], [1565.670741, 1594.800492], rtol=1e-2)
datasets = get_map_datasets()
@@ -420,6 +420,6 @@ def test_lightcurve_estimator_map_datasets():
assert_allclose(lightcurve2.table["ref_e2dnde"], [1e-11])
assert_allclose(lightcurve2.table["stat"], [-177267.775615], rtol=1e-2)
assert_allclose(lightcurve2.table["norm"], [0.983672], rtol=1e-2)
- assert_allclose(lightcurve2.table["norm_err"], [0.026864], rtol=1e-2)
- assert_allclose(lightcurve.table["counts"], [46794, 47388])
- assert_allclose(lightcurve2.table["ts"], [3011.128], rtol=1e-2)
+ assert_allclose(lightcurve2.table["norm_err"], [0.026545], rtol=1e-2)
+ assert_allclose(lightcurve.table["counts"], [46816, 47399])
+ assert_allclose(lightcurve2.table["ts"], [3160.275], rtol=1e-2)
