Commit 7984cfc9 authored by Fidel Alfaro Almagro's avatar Fidel Alfaro Almagro
Browse files

Update bb_basic_QC.py (removing ['path'] string.

parent b5a072b4
...@@ -97,20 +97,20 @@ def bb_basic_QC(subject, fileConfig, basic_QC_file): ...@@ -97,20 +97,20 @@ def bb_basic_QC(subject, fileConfig, basic_QC_file):
fd_fileName = "logs/file_descriptor.json" fd_fileName = "logs/file_descriptor.json"
for fileN in fileConfig: for fileN in fileConfig:
if not isinstance(fileConfig[fileN]['path'], list): if not isinstance(fileConfig[fileN], list):
if bb_path.isImage(fileConfig[fileN]['path']): if bb_path.isImage(fileConfig[fileN]):
fils=bb_path.removeImageExt(fileConfig[fileN]['path']) fils=bb_path.removeImageExt(fileConfig[fileN])
if os.path.isfile(fils+"_orig.nii.gz"): if os.path.isfile(fils+"_orig.nii.gz"):
fileList=[fils+"_orig.nii.gz"] fileList=[fils+"_orig.nii.gz"]
else: else:
fileList=[fileConfig[fileN]['path']] fileList=[fileConfig[fileN]]
else: else:
fileList=[fileConfig[fileN]['path']] fileList=[fileConfig[fileN]]
else: else:
fileList=fileConfig[fileN]['path'] fileList=fileConfig[fileN]
for fileName in fileList: for fileName in fileList:
if os.path.isfile(fileName): if os.path.isfile(fileName):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment