mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-08-08 11:52:25 +02:00
len() and pedestal subtraction (#328)
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user