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

Reconstruct Mayo dataset - errors in importing statements #1620

Open
antonyvam opened this issue Jul 25, 2022 · 0 comments
Open

Reconstruct Mayo dataset - errors in importing statements #1620

antonyvam opened this issue Jul 25, 2022 · 0 comments

Comments

@antonyvam
Copy link

I would like to use odl to reconstruct the mayo datasets; I am trying to follow the scripts:
https://github.com/odlgroup/odl/blob/25ec783954a85c2294ad5b76414f8c7c3cd2785d/odl/contrib/datasets/ct/examples/mayo_reconstruct.py
https://github.com/odlgroup/odl/blob/25ec783954a85c2294ad5b76414f8c7c3cd2785d/odl/contrib/datasets/ct/mayo.py
However the import statement fails:

  8 from dicom.datadict import DicomDictionary, NameDict, CleanName

----> 9 from odl.discr.discr_utils import linear_interpolator
10 from odl.contrib.datasets.ct.mayo_dicom_dict import new_dict_items
11

ImportError: No module named 'odl.discr.discr_utils'

Can you please advise which version of odl I should use to get this working and the dependencies (python version)?

Initially I had python v3.8 installed and installed odl using conda but it was failing to work due to issues related to numpy. It seems it is not specified anywhere what should be the python version for odl to work (and also the versions for the dependencies). I noticed in the documentation (https://odlgroup.github.io/odl/getting_started/installing_conda.html) that python v3.5 is mentioned so I created an environment based on this but the conda installation was stuck. I used pip (despite the warning that python v3.5 reached the end of its life in Sept 2020):

pip install odl[show,pywavelets,scikit,proximal,testing]

Then I installed astra:

conda install -c astra-toolbox astra-toolbox

and dicom:

pip install dicom

Pytest showed that it passed the tests but I get the error when trying to import odl.discr.discr_utils. I noticed that this has been modified over the past couple of years and I tried reverting to older odl versions (0.6, 0.5.3) but the problem remained.

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

1 participant