Skip to content

Commit

Permalink
Fix generate5tt input
Browse files Browse the repository at this point in the history
  • Loading branch information
teanijarv authored Feb 28, 2024
1 parent c08e17b commit eda6497
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nipype/interfaces/mrtrix3/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
traits,
TraitedSpec,
File,
Directory,
InputMultiPath,
isdefined,
)
Expand Down Expand Up @@ -230,8 +231,10 @@ class Generate5ttInputSpec(MRTrix3BaseInputSpec):
mandatory=True,
desc="tissue segmentation algorithm",
)
in_file = File(
exists=False, argstr="%s", mandatory=True, position=-2, desc="input image"
in_file = traits.Either(
File(exists=True),
Directory(exists=True),
argstr="%s", mandatory=True, position=-2, desc="input image / directory"
)
out_file = File(argstr="%s", mandatory=True, position=-1, desc="output image")

Expand Down

0 comments on commit eda6497

Please sign in to comment.