added tell and better error checking to cluster file (#239)
Some checks failed
Build on RHEL8 / build (push) Failing after 3m8s
Build on RHEL9 / build (push) Failing after 3m18s

- Check feof and ferror when reading frames
- added tell member function to ClusterFile
This commit is contained in:
Erik Fröjdh
2025-10-27 15:46:31 +01:00
committed by GitHub
parent 45f506b473
commit ac83eeff9b
3 changed files with 20 additions and 3 deletions

View File

@@ -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) {