Skip to content

Commit b010781

Browse files
fix default normalization
1 parent fd6a5fc commit b010781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/cabinetry/visualize/plot_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def data_mc(
7171
bin_width_norm = (bin_edges[1:] - bin_edges[:-1]) / rescaling_factor
7272
else:
7373
unit = None
74-
bin_width_norm = np.ones_like(bin_edges)
74+
bin_width_norm = np.ones_like(bin_edges[:-1])
7575

7676
total_model_unc /= bin_width_norm # apply bin width normalization
7777

0 commit comments

Comments
 (0)