Adapt test_lightcurve.py
@@ -408,10 +408,10 @@ def test_lightcurve_estimator_map_datasets():
assert_allclose(lightcurve.table["ref_flux"], [9.9e-12, 9.9e-12])
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"], [-86845.74348, -90386.086642], rtol=1e-5)
- assert_allclose(lightcurve.table["norm_err"], [0.041529, 0.041785], rtol=1e-3)
- assert_allclose(lightcurve.table["sqrt_ts"], [39.016115, 37.766553], atol=0.01)
- assert_allclose(lightcurve.table["ts"], [1522.257266, 1426.31252], atol=0.01)
+ assert_allclose(lightcurve.table["stat"], [-87332.448423, -89904.0102], rtol=1e-5)
+ assert_allclose(lightcurve.table["norm_err"], [0.044116, 0.043618], rtol=1e-3)
+ assert_allclose(lightcurve.table["sqrt_ts"], [38.243713, 39.351595], atol=0.01)
+ assert_allclose(lightcurve.table["ts"], [1462.581621, 1548.548039], atol=0.01)
datasets = get_map_datasets()
time_intervals2 = [Time(["2010-01-01T00:00:00", "2010-01-01T02:00:00"])]
@@ -429,7 +429,7 @@ def test_lightcurve_estimator_map_datasets():
assert_allclose(lightcurve2.table["ref_flux"], [9.9e-12])
assert_allclose(lightcurve2.table["ref_eflux"], [4.60517e-11])
assert_allclose(lightcurve2.table["ref_e2dnde"], [1e-11])
- assert_allclose(lightcurve2.table["stat"], [-177231.653683], rtol=1e-5)
- assert_allclose(lightcurve2.table["norm_err"], [0.029441], rtol=1e-3)
- assert_allclose(lightcurve.table["counts"], [46702, 47508])
- assert_allclose(lightcurve2.table["ts"], [2948.403853], atol=0.01)
+ assert_allclose(lightcurve2.table["stat"], [-177236.416479], rtol=1e-5)
+ assert_allclose(lightcurve2.table["norm_err"], [0.031006], rtol=1e-3)
+ assert_allclose(lightcurve.table["counts"], [46782, 47389])
+ assert_allclose(lightcurve2.table["ts"], [3011.056469], atol=0.01)
