NotImplementedError: Wrong number or type of arguments for overloaded function 'ProjDataInfo_ProjDataInfoCTI'.
Possible C/C++ prototypes are:
stir::ProjDataInfo::ProjDataInfoCTI(stir::shared_ptr< stir::Scanner > const &,int const,int const,int const,int const,bool const)
stir::ProjDataInfo::ProjDataInfoCTI(stir::shared_ptr< stir::Scanner > const &,int const,int const,int const,int const)
I ran into an error with executing this line on my mac - Python 3.6.3
https://github.com/UCL/STIR-exercises/blob/e5ab1f58baa9d477a538c96a88da59e0e9256001/python/projection_demo.py#L38-L40 produced the error:
I believe this is because https://github.com/UCL/STIR-exercises/blob/e5ab1f58baa9d477a538c96a88da59e0e9256001/python/projection_demo.py#L35 produces type float where
stir::ProjDataInfo::ProjDataInfoCTI
only accepts integers.This was only an issue on my Mac with python 3.6.3, the visual machine, running python 2.7.1 does not have this issue and
num_views
is an int.I have resolved this issue by forcing
num_views
to be type int.