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

createBrainParcellation.py #4

Open
loveisatouch opened this issue Sep 29, 2020 · 0 comments
Open

createBrainParcellation.py #4

loveisatouch opened this issue Sep 29, 2020 · 0 comments

Comments

@loveisatouch
Copy link

because of not exit temp_dir. os.mkdir(temp_dir) that's /.temp_bp
"""subject_bp_filepaths = [os.path.join(root, name) for root, dirs, files in os.walk(temp_dir) for name in files if
'HarvardOxford' not in name and 'lab' in name and name.endswith('.nii.gz')]
"""
so subject_bp_filepaths=[]

when
img = sitk.ReadImage(subject_bp_filepaths[0])
it cause IndexError: list index out of range.
how to sovle this problem thx!

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

1 participant