diff --git a/src/swig/stir.i b/src/swig/stir.i index ef9e0e73e4..441c894254 100644 --- a/src/swig/stir.i +++ b/src/swig/stir.i @@ -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& stir::IterativeReconstruction::get_objective_function, %arg(stir::PoissonLogLikelihoodWithLinearModelForMeanAndProjData)); -*/ +*/ + +// tell SWIG to convert the return of get_prior_ptr etc to the appropriate object %newobject *::get_prior_ptr; %factory(stir::GeneralisedPrior *stir::GeneralisedObjectiveFunction< TargetT >::get_prior_ptr, stir::QuadraticPrior,