Skip to content

Commit

Permalink
The DceToR1 r1_0_val attribute is a float.
Browse files Browse the repository at this point in the history
  • Loading branch information
FredLoney committed Jun 2, 2017
1 parent fa848b3 commit 545ddf7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions qipipe/interfaces/dce_to_r1.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from __future__ import absolute_import
import os
from nipype.interfaces.base import (
TraitedSpec, CommandLine, CommandLineInputSpec, isdefined
traits, TraitedSpec, CommandLine, CommandLineInputSpec
)

OUTPUT_FILE_NAME = 'r1_series.nii.gz'
Expand All @@ -21,11 +21,15 @@
"""The dce_to_r1 output mask file base name."""

class DceToR1InputSpec(CommandLineInputSpec):
in_file = traits.String(desc='The 4D time series image file path',
mandatory=True, position=1, argstr='%s')
in_file = traits.File(desc='The 4D time series image file path',
mandatory=True, position=1, argstr='%s')

r1_0_val = traits.Integer(desc='Constant R1 value',
mandatory=True, position=2, argstr='%d')
r1_0_val = traits.Float(desc='Constant R1 value', mandatory=True,
position=2, argstr='%d')

# TODO - add r1_0_file as an alternative input.
#r1_0_file = traits.File(desc='R1 2D or 3D image file path',
# mandatory=???, position=???, argstr='%s')

base_end = traits.String(desc='End index for baseline signal',
argstr='--base-end %s')
Expand Down

0 comments on commit 545ddf7

Please sign in to comment.