Closed paskino closed 6 years ago
path = os.path.dirname(tomophantom.__file__)
doesn't work. Complains that tomophantom not found.
I installed the conda package and it worked.
Did you import tomophantom
?
When reporting an error can you post the exact error output?
sorry, what path = os.path.dirname(tomophantom.__file__)
actually means, how I can give a path to Phantom2DLibrary.dat
with it for instance?
path = os.path.dirname(tomophantom.__file__)
worked but I don't know what to do with it? thx
the Phantom2DLibrary.dat
resides in os.path.dirname(tomophantom.__file__)
so it'd be sufficient to point it as
import tomophantom
import os
path = os.path.dirname(tomophantom.__file__)
library2D = os.path.join(path, "Phantom2DLibrary.dat")
thanks, I see! However I do not have any of *dat
files in path
(so python can't find them). I do have only supp, TomoP2D.so, TomoP3D.so
. Do you have them copied?
For Python they can be located as
Demos should be updated