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

Cannot visualize checkerboard #1

Closed
glatard opened this issue Apr 11, 2018 · 6 comments
Closed

Cannot visualize checkerboard #1

glatard opened this issue Apr 11, 2018 · 6 comments

Comments

@glatard
Copy link

glatard commented Apr 11, 2018

  • mrivis version: 0.2.7
  • Python version: 3.6.5
  • Operating System: Fedora 27

Description

Hi Raamana, I was trying to do this with @lalet:

>>> from mrivis import checkerboard
>>> checkerboard('sub-01/anat/sub-01_T1w.nii.gz', 'sub-01/anat/sub-01_T1w.nii.gz', patch_size=10)

And this happened:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/glatard/.local/lib/python3.6/site-packages/mrivis/mrivis.py", line 92, in checkerboard
    **mixer_params)
  File "/home/glatard/.local/lib/python3.6/site-packages/mrivis/mrivis.py", line 398, in _compare
    display_params, **kwargs)
TypeError: _generic_mixer() takes 3 positional arguments but 6 were given

Any hint?

@raamana
Copy link
Owner

raamana commented Apr 11, 2018

Hi Tristan, Thanks for trying - let me check it.

@raamana
Copy link
Owner

raamana commented Apr 12, 2018

it seems to work on my computer - can you reinstall it and try again?

pip uninstall mrivis
pip install -U mrivis

@raamana
Copy link
Owner

raamana commented Apr 12, 2018

Also, depending on your needs and requirements, you might be better served by visualqc, if you had to compare alignment across many subjects...

@raamana
Copy link
Owner

raamana commented Apr 12, 2018

Actually, try these:

pip uninstall mrivis
pip install -U mrivis —no-cache-dir

@glatard
Copy link
Author

glatard commented Apr 12, 2018

yes it worked, thanks a lot!

@raamana
Copy link
Owner

raamana commented Apr 12, 2018

Let me know if you have any feedback. I am considering rewriting it to be more API-friendly - let me know if you have any applications/requirements in mind, I can try to ensure they are incorporated.

@raamana raamana closed this as completed Apr 12, 2018
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