Skip to content

Commit 7b81cae

Browse files
committed
fix: randomise - removed os.getcwd
1 parent 36a947a commit 7b81cae

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

nipype/interfaces/fsl/model.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,11 +1488,9 @@ class Randomise(FSLCommand):
14881488
def _list_outputs(self):
14891489
outputs = self.output_spec().get()
14901490
outputs['tstat_files'] = glob(self._gen_fname(\
1491-
'%s_tstat*.nii' % self.inputs.base_name,
1492-
cwd=os.getcwd()))
1491+
'%s_tstat*.nii' % self.inputs.base_name))
14931492
outputs['fstat_files'] = glob(self._gen_fname(\
1494-
'%s_fstat*.nii' % self.inputs.base_name,
1495-
cwd=os.getcwd()))
1493+
'%s_fstat*.nii' % self.inputs.base_name))
14961494
prefix = False
14971495
if self.inputs.tfce or self.inputs.tfce2D:
14981496
prefix = 'tfce'
@@ -1504,17 +1502,12 @@ def _list_outputs(self):
15041502
prefix = 'clusterm'
15051503
if prefix:
15061504
outputs['t_p_files'] = glob(self._gen_fname(\
1507-
'%s_%s_p_tstat*' % (self.inputs.base_name, prefix),
1508-
cwd=os.getcwd()))
1505+
'%s_%s_p_tstat*' % (self.inputs.base_name, prefix)))
15091506
outputs['t_corrected_p_files'] = glob(self._gen_fname(\
1510-
'%s_%s_corrp_tstat*.nii' % (self.inputs.base_name, prefix),
1511-
cwd=os.getcwd()))
1507+
'%s_%s_corrp_tstat*.nii' % (self.inputs.base_name, prefix)))
15121508

15131509
outputs['f_p_files'] = glob(self._gen_fname(\
1514-
'%s_%s_p_fstat*.nii' % (self.inputs.base_name, prefix),
1515-
cwd=os.getcwd()))
1510+
'%s_%s_p_fstat*.nii' % (self.inputs.base_name, prefix)))
15161511
outputs['f_corrected_p_files'] = glob(self._gen_fname(\
1517-
'%s_%s_corrp_fstat*.nii' % (self.inputs.base_name, prefix),
1518-
cwd=os.getcwd()))
1519-
print outputs
1512+
'%s_%s_corrp_fstat*.nii' % (self.inputs.base_name, prefix)))
15201513
return outputs

0 commit comments

Comments
 (0)