mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-08-09 11:20:30 +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:
@@ -60,6 +60,7 @@ void define_file_io_bindings(py::module &m) {
|
||||
.def("seek", &File::seek)
|
||||
.def("tell", &File::tell)
|
||||
.def_property_readonly("total_frames", &File::total_frames)
|
||||
.def("__len__", &File::total_frames)
|
||||
.def_property_readonly("rows", &File::rows)
|
||||
.def_property_readonly("cols", &File::cols)
|
||||
.def_property_readonly("bitdepth", &File::bitdepth)
|
||||
|
||||
Reference in New Issue
Block a user