Skip to content

Commit

Permalink
fixup epsilon
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Jun 25, 2024
1 parent 2ddd0b4 commit 29796a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/backgrounds/ecal_backwards.org
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ for collection_name in ["EcalEndcapNHits", "EcalEndcapPHits"]:
for ix, vals in enumerate([xs, ys]):
centers = np.unique(vals)
diffs = centers[1:] - centers[:-1]
EPSILON = 1-e5
EPSILON = 1e-5
bin_widths[ix] = np.min(diffs[diffs > EPSILON]) if np.sum(diffs > EPSILON) > 0 else 1.
print(f"bin_widths[{ix}]", bin_widths[ix])

Expand Down

0 comments on commit 29796a8

Please sign in to comment.