add python bindings to the updated find_clusters function
Build on RHEL9 / build (push) Successful in 2m19s
Build on RHEL8 / build (push) Successful in 2m55s
Run tests using data on local RHEL8 / build (push) Successful in 3m46s

This commit is contained in:
2026-05-05 15:15:52 +02:00
parent 95762ae459
commit 6c69b13da6
5 changed files with 23 additions and 13 deletions
+5 -3
View File
@@ -74,12 +74,14 @@ void define_ClusterFinder(py::module &m, const std::string &typestr) {
.def(
"find_clusters",
[](ClusterFinder<ClusterType, uint16_t, pd_type> &self,
py::array_t<uint16_t> frame, uint64_t frame_number) {
py::array_t<uint16_t> frame, uint64_t frame_number,
bool update_pedestal) {
auto view = make_view_2d(frame);
self.find_clusters(view, frame_number);
self.find_clusters(view, frame_number, update_pedestal);
return;
},
py::arg(), py::arg("frame_number") = 0);
py::arg(), py::arg("frame_number") = 0,
py::arg("update_pedestal") = true);
}
#pragma GCC diagnostic pop