mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-11-02 03:21:36 +01: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:
1 parent
ee7503082d
commit
b4b28fc9e0
10 files changed
+86
-6
No files matched your search
@@ -280,6 +280,7 @@ void define_raw_file_io_bindings(py::module &m) {
|
||||
.def("tell", &RawFile::tell, R"(
|
||||
Return the current frame number.)")
|
||||
.def_property_readonly("total_frames", &RawFile::total_frames)
|
||||
.def("__len__", &RawFile::total_frames)
|
||||
.def("rows", static_cast<size_t (RawFile::*)() const>(&RawFile::rows))
|
||||
.def(
|
||||
"rows",
|
||||
|
||||
Reference in new issue
Block a user