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

itkwidgets installation missing compare #739

Open
tenres opened this issue Mar 29, 2024 · 4 comments
Open

itkwidgets installation missing compare #739

tenres opened this issue Mar 29, 2024 · 4 comments

Comments

@tenres
Copy link

tenres commented Mar 29, 2024

I get the below error when trying to import compare. I would like to use it with ITKElastix.

from itkwidgets import compare, checkerboard, view
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'compare' from 'itkwidgets' (anaconda3/envs/itk_elastix/lib/python3.8/site-packages/itkwidgets/init.py)

I used the following command for installation: pip install 'itkwidgets[all]>=1.0a23'

Thanks!

@bnmajor
Copy link
Collaborator

bnmajor commented Mar 31, 2024

Right now a lot of our docs reference and older version of itkwidgets that people are having issues with. I have a PR open to fix this. In the meantime I would use 1.0a49: pip install itkwidgets[all]>=1.0a49.

@tenres
Copy link
Author

tenres commented Apr 1, 2024

Thanks, but still have the same issue.

@bnmajor
Copy link
Collaborator

bnmajor commented Apr 1, 2024

I'm sorry I missed this at first but it looks like it's compare_images, not compare. See this example.

@tenres
Copy link
Author

tenres commented Apr 1, 2024

Great. So, it seems the checkerboard function has been integrated into the "compare_images" function and the older "compare" function for side-by-side image comparison has been removed.

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