mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-10-31 01:31:29 +01:00
added read columns in JungfrauDataFile
This commit is contained in:
1 parent
4b7a5d2134
commit
6c45d52d47
5 files changed
+105
-4
No files matched your search
@@ -78,6 +78,24 @@ void define_jungfrau_data_file_io_bindings(py::module &m) {
|
||||
R"(
|
||||
Read a single frame from the file.
|
||||
)")
|
||||
.def(
|
||||
"read_columns",
|
||||
[](JungfrauDataFile &self,
|
||||
const std::vector<size_t> column_indices) {
|
||||
return self.read_columns(column_indices);
|
||||
},
|
||||
R"(
|
||||
Read the columns at the current frame.
|
||||
Parameters
|
||||
----------
|
||||
column_indices : list of int
|
||||
The indices of the columns to read.
|
||||
Returns
|
||||
-------
|
||||
Frame : Frame
|
||||
The columns read from the file.
|
||||
)
|
||||
)")
|
||||
.def("read_n", &read_n_dat_frames,
|
||||
R"(
|
||||
Read maximum n_frames frames from the file.
|
||||
|
||||
Reference in new issue
Block a user