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

Problem with legacy code #3

Closed
aljosahafner opened this issue Mar 8, 2024 · 2 comments
Closed

Problem with legacy code #3

aljosahafner opened this issue Mar 8, 2024 · 2 comments

Comments

@aljosahafner
Copy link

Hello,

I've been updating and re-maintaining some legacy tomography code which contains this implementation of PyMR-FBP as well. However, my code contains the following calls:

import mrfbp

mrfbp.ASTRAProjector.ASTRAProjector2D(proj_geom,vol_geom)
mrfbp.Reconstructor(p)

The error is:

AttributeError: module 'mrfbp' has no attribute 'ASTRAProjector'

The pymrfbp package has been installed from the pymrfb root folder using:

pip install -e .

Do you have any idea why this happens and how can this be overcome. I am sure there is an easy and elegant solution, but I am failing to see it ... Thanks in advance for your help!

@dmpelt
Copy link
Owner

dmpelt commented Apr 26, 2024

Hi!

I think the code you are using is using an old version of the MRFBP implementation. The current implementation uses the ASTRA toolbox plugin system to initialize and call the MRFBP algorithm, as described here: https://github.com/dmpelt/pymrfbp/blob/master/examples/ASTRAExample.py .

I hope this helps!

@aljosahafner
Copy link
Author

Hello,

Thanks a lot for your answer. I already figured it out by now and indeed I have used the example you linked above to fix the code.

Cheers!

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