read_n returns remaining frames

This commit is contained in:
froejdh_e
2024-11-26 12:07:17 +01:00
parent a3f813f9b4
commit 8e3d997bed
2 changed files with 23 additions and 4 deletions

View File

@ -16,7 +16,7 @@ CtbRawFile::CtbRawFile(const std::filesystem::path &fname) : m_master(fname) {
void CtbRawFile::read_into(std::byte *image_buf, DetectorHeader* header) {
if(m_current_frame >= m_master.frames_in_file()){
throw std::runtime_error(LOCATION + "End of file reached");
throw std::runtime_error(LOCATION + " End of file reached");
}
if(m_current_frame != 0 && m_current_frame % m_master.max_frames_per_file() == 0){