You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: