-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_blocks_on_cylindrical_projectors
fails when compiled in debug
#1335
Comments
This may be a local issue as a debug configuration is tested: https://github.com/UCL/STIR/actions/runs/7530331512/job/20496461728 |
yes, but the test is excluded: STIR/.github/workflows/build-test.yml Lines 316 to 318 in 434837c
|
There's a few issues here:
So, proposal
@markus-jehl @danieldeidda what do you think? |
As discussed offline with @KrisThielemans and @danieldeidda, I have first added a check for (or better: against) view mashing to the constructor of GenericNoArcCorr (couldn't do it in Blocks because that called the Generic constructor first and that already failed). This worked. Subsequently I then removed the view mashing in the tests - they take significantly longer now, though. Additionally, I noticed that the TOF merge reverted the default muting of the following log message in the forward projector, which I took the liberty to bump up to verbosity 3 again: "INFO: Processing view x of segment y". |
Relevant log
Error summary
The assertion
get_scanner_ptr()->get_num_detectors_per_ring() % (2*get_num_views()) == 0
is false. The issue starts here in the test:STIR/src/recon_test/test_blocks_on_cylindrical_projectors.cxx
Lines 131 to 133 in 2eaacd6
when using a
SAFIRDualRingPrototype
scanner. ThenSTIR/src/buildblock/ProjDataInfoGenericNoArcCorr.cxx
Line 85 in 2eaacd6
ProjDataInfoGenericNoArcCorr
constructor, which leads to the error trace. I was able to follow this by adding a breakpoint on at the erring assert on line 214STIR/src/include/stir/ProjDataInfoCylindrical.inl
Lines 207 to 217 in 2eaacd6
The assert is needed because
get_view_mashing_factor()
returns anint
typeThe text was updated successfully, but these errors were encountered: