File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed
nipype/interfaces/freesurfer Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -1536,19 +1536,6 @@ class MNIBiasCorrection(FSCommand):
1536
1536
input_spec = MNIBiasCorrectionInputSpec
1537
1537
output_spec = MNIBiasCorrectionOutputSpec
1538
1538
1539
- def _gen_filename (self ):
1540
- # if outfile was not defined
1541
- if not isdefined (self .inputs .out_file ):
1542
- return self ._gen_fname (self .inputs .in_file ,
1543
- suffix = '_output' )
1544
- def _list_outputs (self ):
1545
- outputs = self ._outputs ().get ()
1546
- if not isdefined (self .inputs .out_file ):
1547
- outputs ["out_file" ] = self ._gen_filename ()
1548
- else :
1549
- outputs ["out_file" ] = os .path .abspath (self .inputs .out_file )
1550
- return outputs
1551
-
1552
1539
1553
1540
class WatershedSkullStripInputSpec (FSTraitedSpec ):
1554
1541
# required
Original file line number Diff line number Diff line change @@ -100,12 +100,12 @@ def test_mandatory_outvol(create_files_in_directory):
100
100
# test with minimal args
101
101
mni .inputs .in_file = filelist [0 ]
102
102
assert mni .cmdline == ('mri_nu_correct.mni --i %s --o %s_output.mgz'
103
- % (filelist [0 ], filelist [0 ].replace ('.mgz' , '' ))
103
+ % (filelist [0 ], filelist [0 ].replace ('.mgz' , '' )))
104
104
105
105
# test with custom outfile
106
106
mni .inputs .out_file = 'new_corrected_file.mgz'
107
107
assert mni .cmdline == ('mri_nu_correct.mni --i %s --o new_corrected_file.mgz'
108
- % (filelist [0 ])
108
+ % (filelist [0 ]))
109
109
110
110
# constructor based tests
111
111
mni2 = freesurfer .MNIBiasCorrection (in_file = filelist [0 ],
You can’t perform that action at this time.
0 commit comments