cleanup and revert to double for pd
Build on RHEL9 / build (push) Failing after 2m38s
Build on RHEL8 / build (push) Failing after 3m10s
Run tests using data on local RHEL8 / build (push) Failing after 3m55s

This commit is contained in:
Erik Frojdh
2026-08-03 10:05:59 +02:00
parent 4a0ef906d9
commit 07b994c72e
6 changed files with 96 additions and 98 deletions
-2
View File
@@ -50,8 +50,6 @@ void define_ClusterFinder(py::module &m, const std::string &typestr) {
})
.def("clear_pedestal",
&ClusterFinder<ClusterType, uint16_t, pd_type>::clear_pedestal)
.def("update_std",
&ClusterFinder<ClusterType, uint16_t, pd_type>::update_std)
.def("update_threshold",
&ClusterFinder<ClusterType, uint16_t, pd_type>::update_threshold)
.def_property_readonly(
+1 -14
View File
@@ -51,12 +51,6 @@ void define_fast_pedestal_bindings(py::module &m, const std::string &name) {
*standard_deviation = self.std();
return return_image_data(standard_deviation);
})
.def("cached_std",
[](FastPedestal<SUM_TYPE> &self) {
auto standard_deviation = new NDArray<SUM_TYPE, 2>{};
*standard_deviation = self.cached_std();
return return_image_data(standard_deviation);
})
.def(
"__array_ufunc__",
[](py::object self, py::object ufunc, const std::string &method,
@@ -100,15 +94,8 @@ void define_fast_pedestal_bindings(py::module &m, const std::string &name) {
pedestal.push_init(make_view_2d(frame));
},
py::arg("frame").noconvert())
// .def(
// "push_no_update",
// [](FastPedestal<SUM_TYPE> &pedestal,
// py::array_t<uint16_t, py::array::c_style> &frame) {
// pedestal.push_no_update(make_view_2d(frame));
// },
// py::arg("frame").noconvert())
.def("update_mean", &FastPedestal<SUM_TYPE>::update_mean)
.def("update_std", &FastPedestal<SUM_TYPE>::update_std)
.def_buffer([](FastPedestal<SUM_TYPE> &self) {
auto mean = self.view();
return py::buffer_info(
-1
View File
@@ -110,7 +110,6 @@ void define_pedestal_bindings(py::module &m, const std::string &name) {
},
py::arg().noconvert())
.def("update_mean", &Pedestal<SUM_TYPE>::update_mean)
.def("update_std", &Pedestal<SUM_TYPE>::update_std)
.def_buffer([](Pedestal<SUM_TYPE> &self) {
auto mean = self.view();
return py::buffer_info(