This is the official C-PAC (Configurable Pipeline for the Analysis of Connectomes) brainlife.io app. Currently this app runs either the default pipeline or one of our preconfigured pipelines.
MIT License
0
stars
2
forks
source link
🐛 `RepetitionTime` missing from `scan_parameters` #6
aCompCor_tr_string2float & tCompCor_tr_string2float both complain
Node inputs:
function_str = def TR_string_to_float(tr):
if 'ms' in tr:
tr = float(tr.replace('ms',''))/1000
else:
tr = float(tr.replace('s',''))
return tr
tr = None
Traceback:
Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/linear.py", line 44, in run
node.run(updatehash=updatehash)
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 471, in run
result = self._run_interface(execute=True)
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 555, in _run_interface
return self._run_command(execute)
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 635, in _run_command
result = self._interface.run(cwd=outdir)
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 521, in run
runtime = self._run_interface(runtime)
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/utility/wrappers.py", line 144, in _run_interface
out = function_handle(**args)
File "<string>", line 2, in TR_string_to_float
TypeError: argument of type 'NoneType' is not iterable
Describe the bug
aCompCor_tr_string2float
&tCompCor_tr_string2float
both complainTo Reproduce Steps to reproduce the behavior:
preconfig
tofmriprep-options
Expected behavior
TR should be known and set.
Versions
Additional context
I'm not sure whether https://github.com/FCP-INDI/app-C-PAC-brainlife.io/blob/c2fb306fb9d42cb69a803e9d1eec65fdf3d818c7/main#L28 should be doing something to get the repetition time metadata or if C-PAC itself should.
Run log: https://github.com/FCP-INDI/cpac_run_logs/issues/3