mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-10-17 18:35:10 +02:00
check ready before updating pd (#391)
- For set_nSigma only call update_pedestal if we have accumulated enough samples otherwise just write it - For update threshold check if pd is ready and if not throw closes #390
This commit is contained in:
@@ -55,6 +55,10 @@ void define_ClusterFinder(py::module &m, const std::string &typestr) {
|
||||
&ClusterFinder<ClusterType, uint16_t, pd_type>::clear_pedestal)
|
||||
.def("update_threshold",
|
||||
&ClusterFinder<ClusterType, uint16_t, pd_type>::update_threshold)
|
||||
.def_property_readonly(
|
||||
"pedestal_ready",
|
||||
&ClusterFinder<ClusterType, uint16_t, pd_type>::pedestal_ready,
|
||||
R"(True once enough pedestal frames have been pushed to find clusters.)")
|
||||
.def_property_readonly(
|
||||
"pedestal",
|
||||
[](ClusterFinder<ClusterType, uint16_t, pd_type> &self) {
|
||||
|
||||
@@ -62,6 +62,10 @@ void define_ClusterFinderMT(py::module &m, const std::string &typestr) {
|
||||
&ClusterFinderMT<ClusterType, uint16_t, pd_type>::clear_pedestal)
|
||||
.def("update_threshold",
|
||||
&ClusterFinderMT<ClusterType, uint16_t, pd_type>::update_threshold)
|
||||
.def(
|
||||
"pedestal_ready",
|
||||
&ClusterFinderMT<ClusterType, uint16_t, pd_type>::pedestal_ready,
|
||||
R"(waits for the queued frames, then returns True if all cluster finders have enough pedestal frames to find clusters.)")
|
||||
.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)
|
||||
|
||||
Reference in New Issue
Block a user