Skip to content

Commit

Permalink
fix default normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-held committed Jan 15, 2024
1 parent fd6a5fc commit b010781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cabinetry/visualize/plot_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def data_mc(
bin_width_norm = (bin_edges[1:] - bin_edges[:-1]) / rescaling_factor
else:
unit = None
bin_width_norm = np.ones_like(bin_edges)
bin_width_norm = np.ones_like(bin_edges[:-1])

total_model_unc /= bin_width_norm # apply bin width normalization

Expand Down

0 comments on commit b010781

Please sign in to comment.