[FIX] Update ciftify_clean_img.py to catch use cases without confound_signals#169
Open
marcelzwiers wants to merge 1 commit intoedickie:masterfrom
Open
[FIX] Update ciftify_clean_img.py to catch use cases without confound_signals#169marcelzwiers wants to merge 1 commit intoedickie:masterfrom
marcelzwiers wants to merge 1 commit intoedickie:masterfrom
Conversation
If confounds are not given then an error occurs. The PR is a minimal patch for this
Traceback (most recent call last):
File "/home/mrphys/marzwi/.conda/envs/ciftify/bin/ciftify_clean_img", line 8, in <module>
sys.exit(main())
File "/home/mrphys/marzwi/.conda/envs/ciftify/lib/python3.9/site-packages/ciftify/bin/ciftify_clean_img.py", line 376, in main
ret = run_ciftify_clean_img(arguments, tmpdir)
File "/home/mrphys/marzwi/.conda/envs/ciftify/lib/python3.9/site-packages/ciftify/bin/ciftify_clean_img.py", line 254, in run_ciftify_clean_img
clean_output = clean_image_with_nilearn(trimmed_nifti, confound_signals, settings)
File "/home/mrphys/marzwi/.conda/envs/ciftify/lib/python3.9/site-packages/ciftify/bin/ciftify_clean_img.py", line 345, in clean_image_with_nilearn
confounds=confound_signals.values,
AttributeError: 'NoneType' object has no attribute 'values'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If confounds are not given then an error occurs. The PR is a minimal patch for this