STIR
STIR copied to clipboard
Generate SWIG prior factory
Adds downcasting via a swig factory for priors.
This should address #662 and #707
Sorry force pushed to stop travis.
I took a look at your changes and it doesnt seem to have resolved the issue.
>> QP = self.recon.get_objective_function().get_prior()
Exception ignored in: '_wrap_delete_QuadraticPrior3DFloat'
TypeError: in method 'delete_QuadraticPrior3DFloat', argument 1 of type 'stir::QuadraticPrior< float > *'
ah. it generates the code, but then something goes wrong later with the SWIG type mechanisms. Of course, it's quite weird it's calling a delete
as well... sigh