Skip to content

Commit

Permalink
Fix frames per block
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cjh1 committed Oct 3, 2024
1 parent 0188853 commit 3203c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 3203c8e

Please sign in to comment.