file reading

This commit is contained in:
Erik Fröjdh committed 2024-10-30 14:53:50 +01:00
1 parent be019b9769
commit f754e0f769
13 files changed
+84 -114

No files matched your search

+1 -1
View File
@@ -382,7 +382,7 @@ void RawFile::write(Frame &frame, sls_detector_header header) {
this->current_frame++;
}
std::vector<Frame> RawFile::read(size_t n_frames) {
std::vector<Frame> RawFile::read_n(size_t n_frames) {
// TODO: implement this in a more efficient way
std::vector<Frame> frames;
for (size_t i = 0; i < n_frames; i++) {