From d4ac7c57c4e9ee9af01c2e533fc1c299e1020130 Mon Sep 17 00:00:00 2001 From: Maximilian Linhoff Date: Wed, 18 Dec 2024 13:04:38 +0100 Subject: [PATCH] Fix codacy complaints --- pyirf/cut_optimization.py | 2 +- pyirf/cuts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyirf/cut_optimization.py b/pyirf/cut_optimization.py index 9df954ff..7b42ee3d 100644 --- a/pyirf/cut_optimization.py +++ b/pyirf/cut_optimization.py @@ -190,7 +190,7 @@ def optimize_cuts( else: # if all are invalid, just use the first one best = 0 - + multiplicity_index, theta_index, gh_index = cut_indicies[best] best_sensitivity[bin_id] = sensitivities[best][bin_id] diff --git a/pyirf/cuts.py b/pyirf/cuts.py index 8422059a..c3694127 100644 --- a/pyirf/cuts.py +++ b/pyirf/cuts.py @@ -86,7 +86,7 @@ def calculate_percentile_cut( if percentile.shape == (): cut_table["cut"] = np.asanyarray(fill_value, values.dtype) else: - cut_table["cut"] = np.full((n_bins, len(percentile)), fill_value, dtype=values.dtype) + cut_table["cut"] = np.full((n_bins, len(percentile)), fill_value, dtype=values.dtype) if unit is not None: cut_table["cut"].unit = unit