Skip to content

Commit 4164e8c

Browse files
authored
fix bug with energy bins in plot_roc_curve_gammaness_per_energy (#212)
1 parent 3a4ba4b commit 4164e8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ctaplot/plots/plots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ def plot_roc_curve_gammaness_per_energy(true_type, gammaness, true_energy, gamma
17571757

17581758
if energy_bins is None:
17591759
irf = ana.irf_cta()
1760-
energy_bins = irf.energy_bin
1760+
energy_bins = irf.energy_bins
17611761
elif isinstance(energy_bins, int):
17621762
energy_bins = np.logspace(np.log10(gamma_energy).min(), np.log10(gamma_energy).max(), energy_bins + 1)
17631763

0 commit comments

Comments
 (0)