len() and pedestal subtraction (#328)
Build on RHEL9 / build (push) Successful in 2m57s
Build on RHEL8 / build (push) Successful in 3m28s
Run tests using data on local RHEL8 / build (push) Successful in 4m0s
Build on local RHEL8 / build (push) Successful in 2m44s

Collection of small improvements in usability: 

- NDView works for large arrays
- Direct subtraction of Pedestal from np.array
- len() support for python bindings of files
This commit is contained in:
Erik Fröjdh
2026-06-15 11:38:06 +02:00
committed by GitHub
parent ee7503082d
commit b4b28fc9e0
10 changed files with 86 additions and 6 deletions
+3 -1
View File
@@ -226,5 +226,7 @@ void define_ctb_raw_file_io_bindings(py::module &m) {
.def_property_readonly("image_size_in_bytes",
&CtbRawFile::image_size_in_bytes)
.def_property_readonly("frames_in_file", &CtbRawFile::frames_in_file);
.def_property_readonly("frames_in_file", &CtbRawFile::frames_in_file)
.def_property_readonly("total_frames", &CtbRawFile::total_frames)
.def("__len__", &CtbRawFile::total_frames);
}