From 29796a874c6f1bdeeb100edf11d93894a7f07ad6 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Tue, 25 Jun 2024 08:42:15 -0400 Subject: [PATCH] fixup epsilon --- benchmarks/backgrounds/ecal_backwards.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/backgrounds/ecal_backwards.org b/benchmarks/backgrounds/ecal_backwards.org index bd53a17c..25ded188 100644 --- a/benchmarks/backgrounds/ecal_backwards.org +++ b/benchmarks/backgrounds/ecal_backwards.org @@ -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])