From c15c6d727927ff903a26bed444612d68567092b0 Mon Sep 17 00:00:00 2001 From: Thomas Vuillaume Date: Wed, 19 Nov 2025 15:52:37 +0100 Subject: [PATCH] fix bug with energy bins in plot_roc_curve_gammaness_per_energy --- ctaplot/plots/plots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctaplot/plots/plots.py b/ctaplot/plots/plots.py index a090e4b..7cdc988 100644 --- a/ctaplot/plots/plots.py +++ b/ctaplot/plots/plots.py @@ -1757,7 +1757,7 @@ def plot_roc_curve_gammaness_per_energy(true_type, gammaness, true_energy, gamma if energy_bins is None: irf = ana.irf_cta() - energy_bins = irf.energy_bin + energy_bins = irf.energy_bins elif isinstance(energy_bins, int): energy_bins = np.logspace(np.log10(gamma_energy).min(), np.log10(gamma_energy).max(), energy_bins + 1)