When I run FSL FAST, I get my segmentations output, but have an error which stops me from running FAST in a loop.
Actual behavior
When I run FSL FAST, my segmentation outputs well, but I get the error:
"FileNotFoundError: No such file or directory '/home/vaeat/Documents/sub-S01_ses-J0_maskedresult_order0_seg.nii.gz' for output 'tissue_class_map' of a FAST interface"
I found a similar problem in the issue #2262, but haven't been able to solve the problem using either relative or absolute paths: the problem persists.
Expected behavior
this error shouldn't happen, as I do not specify any path for the tissue class map.
How to replicate the behavior
Running the script below with any nii.gz image yields the same problem.
for sigma_val in np.linspace(0.6, 0.7, 12):
in_gauss_list.append(path+"sub-S0"+"1"+"_ses-J0_masked"+'result_order'+str(round(sigma_val,3))+'_mirror.nii.gz')
out_gauss_list.append(path+"sub-S0"+"1"+"_ses-J0_masked"+'result_order'+str(round(sigma_val,3))+'_mirror')
for in_image, out_image in zip(in_gauss_list, out_gauss_list):
Summary
When I run FSL FAST, I get my segmentations output, but have an error which stops me from running FAST in a loop.
Actual behavior
When I run FSL FAST, my segmentation outputs well, but I get the error: "FileNotFoundError: No such file or directory '/home/vaeat/Documents/sub-S01_ses-J0_maskedresult_order0_seg.nii.gz' for output 'tissue_class_map' of a FAST interface" I found a similar problem in the issue #2262, but haven't been able to solve the problem using either relative or absolute paths: the problem persists.
Expected behavior
this error shouldn't happen, as I do not specify any path for the tissue class map.
How to replicate the behavior
Running the script below with any nii.gz image yields the same problem.
Script/Workflow details
This is the script I am using:
in_gauss_list = [] out_gauss_list = [] path = "/home/vaeat/Documents/Stage_GIN/Data/BIDS_Unofficial_database/derivatives/SkullStripping/"
path = "BIDS_Unofficial_database/derivatives/SkullStripping/"
for sigma_val in np.linspace(0.6, 0.7, 12): in_gauss_list.append(path+"sub-S0"+"1"+"_ses-J0_masked"+'result_order'+str(round(sigma_val,3))+'_mirror.nii.gz') out_gauss_list.append(path+"sub-S0"+"1"+"_ses-J0_masked"+'result_order'+str(round(sigma_val,3))+'_mirror')
for in_image, out_image in zip(in_gauss_list, out_gauss_list):
pool.close() pool.join()
this is the error I get:
Platform details: