fixed conversion, checking over and underflow
Build on RHEL8 / build (push) Failing after 1m16s
Build on RHEL9 / build (push) Failing after 1m22s
Run tests using data on local RHEL8 / build (push) Failing after 1m53s

This commit is contained in:
Erik Frojdh
2026-05-23 16:28:32 +02:00
parent 5ceb63337d
commit 61b765c4b8
4 changed files with 17 additions and 11 deletions
+3 -3
View File
@@ -30,7 +30,7 @@ void define_pixel_histogram_bindings(py::module &m) {
.def("fill",
[](PixelHistogram &self,
py::array_t<double, py::array::forcecast> image) {
py::array_t<PixelHistogram::AxisType, 0> image) {
auto view = make_view_2d(image);
self.fill(view);
},
@@ -38,9 +38,9 @@ void define_pixel_histogram_bindings(py::module &m) {
Fill the histogram with image data.
Args:
image: A 2D numpy array of pixel values (dtype: float64)
image: A 2D numpy array of pixel values (dtype: float32)
)",
py::arg("image"))
py::arg("image").noconvert())
.def("hdata",
[](const PixelHistogram &self) {