From 3203c8e62041a92119a370d4be9cfffd086c5fc8 Mon Sep 17 00:00:00 2001 From: Chris Harris Date: Thu, 3 Oct 2024 08:46:01 -0700 Subject: [PATCH] Fix frames per block For the last block in a scan the number of frames may not be exactly the specified number of frames per block. So use the size of the image numbers vector. --- python/pyreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyreader.cpp b/python/pyreader.cpp index 3a666fcc..d287510d 100644 --- a/python/pyreader.cpp +++ b/python/pyreader.cpp @@ -49,7 +49,7 @@ PyBlock PyReader::read() imageNumberForBlock.push_back(m_imageNumbers[i]); } - b.header = Header(frameDimensions, m_imageNumInBlock, m_scanDimensions, + b.header = Header(frameDimensions, imageNumberForBlock.size(), m_scanDimensions, imageNumberForBlock); b.header.version = 3;