mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-08-07 03:22:25 +02:00
cleanup and revert to double for pd
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user