mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-12-21 12:31:25 +01:00
added tell and better error checking to cluster file (#239)
- Check feof and ferror when reading frames - added tell member function to ClusterFile
This commit is contained in:
@@ -45,6 +45,7 @@ void define_ClusterFile(py::module &m, const std::string &typestr) {
|
||||
return v;
|
||||
})
|
||||
.def("set_roi", &ClusterFile<ClusterType>::set_roi, py::arg("roi"))
|
||||
.def("tell", &ClusterFile<ClusterType>::tell)
|
||||
.def(
|
||||
"set_noise_map",
|
||||
[](ClusterFile<ClusterType> &self, py::array_t<int32_t> noise_map) {
|
||||
|
||||
Reference in New Issue
Block a user