Skip to content

πŸ› RepetitionTime missing from scan_parametersΒ #6

@shnizzedy

Description

@shnizzedy

Describe the bug

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

To Reproduce
Steps to reproduce the behavior:

  1. Go to C-PAC on brainlife.io
  2. Choose a subject (anat & func)
  3. Set preconfig to fmriprep-options
  4. See error

Expected behavior

TR should be known and set.

Versions

  • C-PAC: 1.7.1
  • Container Platform :
    • Singularity
  • SLURM
  • app-C-PAC-brainlife.io: 0.0.0-dev

Additional context

I'm not sure whether

should be doing something to get the repetition time metadata or if C-PAC itself should.

Run log: FCP-INDI/cpac_run_logs#3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Hacktoberfesthttps://hacktoberfest.digitalocean.com/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions