Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 RepetitionTime missing from scan_parameters #6

Open
shnizzedy opened this issue Oct 30, 2020 · 1 comment
Open

馃悰 RepetitionTime missing from scan_parameters #6

shnizzedy opened this issue Oct 30, 2020 · 1 comment
Labels
bug Something isn't working Hacktoberfest https://hacktoberfest.digitalocean.com/

Comments

@shnizzedy
Copy link
Member

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

@shnizzedy
Copy link
Member Author

Resolved in FCP-INDI/C-PAC#1878 (C-PAC v1.8.6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Hacktoberfest https://hacktoberfest.digitalocean.com/
Projects
None yet
Development

No branches or pull requests

1 participant