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

to_nibabel issue #20

Closed
ntustison opened this issue Jan 1, 2025 · 3 comments
Closed

to_nibabel issue #20

ntustison opened this issue Jan 1, 2025 · 3 comments

Comments

@ntustison
Copy link
Member

Hey @stnava ,

When processing a subject through antspymm, I'm getting the
following issue:

...
JHU reg
begin tracking
Traceback (most recent call last):
  File "/Users/ntustison/.local/lib/python3.12/site-packages/antspymm/mm.py", line 8533, in mm_csv
    tabPro, normPro = mm( t1, hier,
                      ^^^^^^^^^^^^^
  File "/Users/ntustison/.local/lib/python3.12/site-packages/antspymm/mm.py", line 7154, in mm
    output_dict['tractography'] = dwi_deterministic_tracking(
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ntustison/.local/lib/python3.12/site-packages/antspymm/mm.py", line 4173, in dwi_deterministic_tracking
    dwi_img = dwi.to_nibabel()
              ^^^^^^^^^^^^^^
AttributeError: 'ANTsImage' object has no attribute 'to_nibabel'
...

I've updated ANTsPy, ANTsPyNet, ANTsPyT1w, and ANTsPyMM
and so I'm guessing it's the nibabel change discussed here.

Any thoughts on how to go about fixing it? I'm willing to help
which I imagine we could do by trying out one of the solutions
proposed but I figured I'd ask first.

Nick

@stnava
Copy link
Member

stnava commented Jan 1, 2025

Can we just add a local helper to antspymm ?

This is likely the only place it’s used

@ntustison
Copy link
Member Author

Thanks. Sure, let me try that locally and I'll get back to you.

@ntustison
Copy link
Member Author

#21

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