From f9f78765f58eb2c47ccb1474533d38f89fa7486d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Fr=C3=B6jdh?= Date: Wed, 3 Jun 2026 13:02:32 +0200 Subject: [PATCH] updated pixel histogram to use fill_unchecked since we know it is within range --- src/hist/PedestalTrackingPixelHistogram.cpp | 3 ++- src/hist/PixelHistogram.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hist/PedestalTrackingPixelHistogram.cpp b/src/hist/PedestalTrackingPixelHistogram.cpp index 0cc36ff..b6cf17a 100644 --- a/src/hist/PedestalTrackingPixelHistogram.cpp +++ b/src/hist/PedestalTrackingPixelHistogram.cpp @@ -224,7 +224,8 @@ void PedestalTrackingPixelHistogram::worker_loop(int thread_id) { static_cast(my_pedestal.mean( static_cast(local_row), static_cast(col))); - my_hist.fill(local_row, static_cast(col), val); + my_hist.fill_unchecked(local_row, static_cast(col), + val); const double sigma = my_std(local_row, col); if (sigma > 0.0 && std::abs(static_cast(val)) < n_sigma * sigma) { diff --git a/src/hist/PixelHistogram.cpp b/src/hist/PixelHistogram.cpp index 0a8af3a..2c2e088 100644 --- a/src/hist/PixelHistogram.cpp +++ b/src/hist/PixelHistogram.cpp @@ -124,7 +124,7 @@ void PixelHistogram::worker_loop(int thread_id) { const auto row = static_cast(first_row + local_row); for (ssize_t col = 0; col < image.shape(1); ++col) { const auto val = image(row, col); - my_hist.fill(local_row, static_cast(col), val); + my_hist.fill_unchecked(local_row, static_cast(col), val); } }