mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-02-20 18:28:41 +01:00
Fixing ROI read of RawFile (#125)
- Bugfixes - New abstraction for detector geometry - Tests for updating geo with ROI
This commit is contained in:
@@ -44,7 +44,7 @@ RawSubFile::RawSubFile(const std::filesystem::path &fname,
|
||||
|
||||
void RawSubFile::seek(size_t frame_index) {
|
||||
if (frame_index >= n_frames) {
|
||||
throw std::runtime_error("Frame number out of range");
|
||||
throw std::runtime_error(LOCATION + fmt::format("Frame index {} out of range in a file with {} frames", frame_index, n_frames));
|
||||
}
|
||||
m_file.seekg((sizeof(DetectorHeader) + bytes_per_frame()) * frame_index);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user