optimizations
Build on RHEL9 / build (push) Failing after 2m36s
Build on RHEL8 / build (push) Failing after 3m8s
Run tests using data on local RHEL8 / build (push) Failing after 3m51s

This commit is contained in:
Erik Frojdh
2026-07-30 18:18:13 +02:00
parent d29a2d6ffb
commit 4fe587c76a
9 changed files with 148 additions and 33 deletions
+4
View File
@@ -48,6 +48,10 @@ 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(
"pedestal",
[](ClusterFinder<ClusterType, uint16_t, pd_type> &self) {
+2
View File
@@ -56,6 +56,8 @@ void define_ClusterFinderMT(py::module &m, const std::string &typestr) {
})
.def("clear_pedestal",
&ClusterFinderMT<ClusterType, uint16_t, pd_type>::clear_pedestal)
.def("update_threshold",
&ClusterFinderMT<ClusterType, uint16_t, pd_type>::update_threshold)
.def("sync", &ClusterFinderMT<ClusterType, uint16_t, pd_type>::sync)
.def("stop", &ClusterFinderMT<ClusterType, uint16_t, pd_type>::stop)
.def("start", &ClusterFinderMT<ClusterType, uint16_t, pd_type>::start)
+7
View File
@@ -51,6 +51,12 @@ 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,
@@ -102,6 +108,7 @@ void define_fast_pedestal_bindings(py::module &m, const std::string &name) {
// },
// 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(
+7
View File
@@ -52,6 +52,12 @@ void define_pedestal_bindings(py::module &m, const std::string &name) {
*std = self.std();
return return_image_data(std);
})
.def("cached_std",
[](Pedestal<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,
@@ -104,6 +110,7 @@ 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(