Show how to change the FluxPointEstimator parameters
@@ -396,8 +396,19 @@ with filename.open("r") as f:
#
analysis.config.flux_points.source = "crab"
+# Example showing how to change the FluxPointsEstimator parameters:
+analysis.config.flux_points.energy.nbins = 5
+config_dict = {"selection_optional": "all",
+ "n_sigma": 2, #Number of sigma to use for asymmetric error computation
+ "n_sigma_ul": 3, #Number of sigma to use for upper limit computation
+ }
+analysis.config.flux_points.parameters = config_dict
+
analysis.get_flux_points()
+# Example showing how to change the significance threshold for the upper limits computation
+fp = analysis.flux_points.data
+fp.sqrt_ts_threshold_ul = 10
ax_sed, ax_residuals = analysis.flux_points.plot_fit()
