Stir subissue mentioned in SIRF #1357#1690
Stir subissue mentioned in SIRF #1357#1690Dimitra-Kyriakopoulou wants to merge 6 commits intoUCL:masterfrom
Conversation
|
Dear Professor @KrisThielemans ,
The affected paths that were reproduced were:
Before the fix, the usual workaround was:
because that forced a new contiguous copy.
That constructor path ended with: this->grow(range);In this code path, using grow(range) goes through resize(), and in practice this was breaking contiguity for these So the constructor path that creates images from
Instead of: this->grow(range);the code now uses: Array<3, elemT>::operator=(Array<3, elemT>(range));This matters because:
So the fix is small, but it targets the correct memory-allocation path.
Only these 2 STIR files belong to the fix:
Diff summary:
The existing STIR test file was extended:
Added checks:
The rebuilt test ran successfully:
To make sure this was not just a STIR-only unit-test result, a local SIRF wrapper was rebuilt against the patched STIR package. Then the original practical repro was rerun:
Final local result:
THANK YOU WHOLEHEARTEDLY! |
Changes in this pull request
#1357exposed a Python/NumPy algebra problem, and while debugging it, a separate STIR contiguity problem was also noticed.Testing performed
Related issues
Checklist before requesting a review
documentation/release_XXX.mdhas been updated with any functionality change (if applicable)Contribution Notes
Please tick the following: