Skip to content

Commit

Permalink
Fix codacy complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Dec 18, 2024
1 parent f390222 commit d4ac7c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyirf/cut_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion pyirf/cuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4ac7c5

Please sign in to comment.