We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a28ed37 + 5c89bdf commit 5ad92bdCopy full SHA for 5ad92bd
nipype/interfaces/afni/preprocess.py
@@ -1949,14 +1949,16 @@ class Seg(AFNICommandBase):
1949
1950
def aggregate_outputs(self, runtime=None, needed_outputs=None):
1951
1952
+ import glob
1953
+
1954
outputs = self._outputs()
1955
1956
if isdefined(self.inputs.prefix):
- outfile = os.path.join(os.getcwd(), self.inputs.prefix, 'Classes+orig.BRIK')
1957
+ outfile = os.path.join(os.getcwd(), self.inputs.prefix, 'Classes+*.BRIK')
1958
else:
- outfile = os.path.join(os.getcwd(), 'Segsy', 'Classes+orig.BRIK')
1959
+ outfile = os.path.join(os.getcwd(), 'Segsy', 'Classes+*.BRIK')
1960
- outputs.out_file = outfile
1961
+ outputs.out_file = glob.glob(outfile)[0]
1962
1963
return outputs
1964
0 commit comments