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

Issue using pydeface on linux VM #45

Closed
frankgarcea opened this issue Jun 22, 2022 · 4 comments
Closed

Issue using pydeface on linux VM #45

frankgarcea opened this issue Jun 22, 2022 · 4 comments

Comments

@frankgarcea
Copy link

frankgarcea commented Jun 22, 2022

Hi all,

We're running into issues de-facing anatomical files on our lab's linux VM. Please note that this issue does not arise when running pydeface on a mac. Here's the error we get when running pydeface:

Defacing...
  sub-014_ses-1_T1w.nii.gz
Traceback (most recent call last):
  File "/PathLocalToMyComputer/anaconda3/bin/pydeface", line 8, in <module>
    sys.exit(main())
  File "/PathLocalToMyComputer/anaconda3/lib/python3.9/site-packages/pydeface/__main__.py", line 95, in main
    pdu.deface_image(**vars(args))
  File "/PathLocalToMyComputer/anaconda3/lib/python3.9/site-packages/pydeface/utils.py", line 124, in deface_image
    masked_brain = Nifti1Image(outdata, infile_img.get_affine(),
  File "/PathLocalToMyComputer/anaconda3/lib/python3.9/site-packages/nibabel/deprecator.py", line 181, in deprecated_func
    raise error_class(message)
nibabel.deprecator.ExpiredDeprecationError: get_affine method is deprecated.
Please use the ``img.affine`` property instead.

* deprecated from version: 2.1
* Raises <class 'nibabel.deprecator.ExpiredDeprecationError'> as of version: 4.0

Has anyone encountered a similar issue?

Thanks,
Frank

@ofgulban
Copy link
Collaborator

Same issue reported at #46 .

ofgulban added a commit that referenced this issue Jul 12, 2022
@ofgulban
Copy link
Collaborator

I have addressed this issue with the commit above. Should be solved with the release of pydeface v2.0.1. Closing.
Feel free to reopen if it is not resolved for after installing pydeface v2.0.1.

@frankgarcea
Copy link
Author

@ofgulban Thank you for addressing this! It's much appreciated.
Do you have an estimate when we will be able to update via pip?
At the moment pydeface 2.0.0 is the go-to version on pip.

All the best,
FG

@ofgulban
Copy link
Collaborator

I have updated pypi now: https://pypi.org/project/pydeface/2.0.2/
Thanks for the reminder :)

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