Closed rmapree closed 11 months ago
https://github.com/SyneRBI/SIRF/actions/runs/6973326347/job/18977119327?pr=1223#step:8:15010
/home/runner/work/SIRF/SIRF/src/xSTIR/cSTIR/include/sirf/STIR/stir_x.h:711:17: error: ‘class sirf::PETScatterEstimator’ has no member named ‘recon_sptr’
711 | this->recon_sptr->set_num_subiterations(arg);
Turns out that recon_sptr
is a local variable in the constructor. Sorry.
stir::ScatterEstimation
doesn't have a get_reconstruction_method_sptr
yet sadly. I'll push an ugly fix. (Therefore, do a git pull
before you make any further changes)
@rmapree there are 3 trailing white-spaces listed at https://app.codacy.com/gh/SyneRBI/SIRF/pullRequest?prid=13103645
Can you also add 2 lines showing how to set num_subsets at https://github.com/SyneRBI/SIRF/blob/008d1ca4ed91c6976f13aa262937f7f1cbe8bd80/examples/Python/PET/scatter_estimation.py#L97-L98, something like
# Could set number of subsets used by the OSEM reconstruction inside the scatter estimation loop.
# Here we will set it to 7 (which is in fact the default), which is appropriate for the mMR
set.set_OSEM_num_subsets(7)
@rmapree I've added a test now. It all works fine! I'll also address the other items above. and then merge
Adding get and set function for OSEM subiterations and subsets for ScatterEstimator
Changes in this pull request
Testing performed
Related issues
Checklist before requesting a review
Contribution Notes
Please read and adhere to the contribution guidelines.
Please tick the following: