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

name 'sinogram' is not defined #14

Open
deepak0405 opened this issue Apr 24, 2019 · 1 comment
Open

name 'sinogram' is not defined #14

deepak0405 opened this issue Apr 24, 2019 · 1 comment

Comments

@deepak0405
Copy link

I am generating phantom using phantom_00001.py. I encountered the following error:

 File "phantom_00001.py", line 66, in <module>
    sino, probe = sinogram(n_proj, ccd_x, phantom)
NameError: name 'sinogram' is not defined

Please help.

@decarlof
Copy link
Member

the phantoms in tomobank were generated with XDesign VERSION:0.2.0.dev0. If you want to generate the very same phantoms you should use this version (where sinogram() was defined). The xdesign version information for phantom_00001.py is saved in the HDF file under

instrument_name="XDesign VERSION:0.2.0.dev0+1d67599b8f104ebded86bac98100dbf15e251a66 FUNCTION: SlantedSquares(count=16, angle=5/360*2*np.pi, gap=0.01), prop='mass_atten'"

Please look at the examples here to generate new phantoms using the latest xdesign version. If of interest, you are welcome to contribute new phantoms to tomobank.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants