Skip to content
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

Generate SWIG prior factory #709

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Clean up comments [ci skip]
  • Loading branch information
robbietuk committed Oct 27, 2020
commit fd15a8b7ae410643d945a7b8d02741e0a7bb5891
6 changes: 3 additions & 3 deletions src/swig/stir.i
Original file line number Diff line number Diff line change
Expand Up @@ -1576,14 +1576,14 @@ namespace stir {
%shared_ptr(stir::FBP2DReconstruction);
%shared_ptr(stir::FBP3DRPReconstruction);

// tell SWIG to convert the return of get_prior_ptr etc to the appropriate object
/* This currently fails, so is still commented out

%newobject *::get_objective_function;
%factory(
stir::GeneralisedObjectiveFunction<TargetT >& stir::IterativeReconstruction<TargetT >::get_objective_function,
%arg(stir::PoissonLogLikelihoodWithLinearModelForMeanAndProjData<TargetT >));
*/
*/

// tell SWIG to convert the return of get_prior_ptr etc to the appropriate object
%newobject *::get_prior_ptr;
%factory(stir::GeneralisedPrior<TargetT> *stir::GeneralisedObjectiveFunction< TargetT >::get_prior_ptr,
stir::QuadraticPrior<elemT>,
Expand Down