File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
nipype/interfaces/mrtrix3 Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 11
11
12
12
13
13
class Info (PackageInfo ):
14
- version_cmd = which ('mrconvert' )
15
- if version_cmd :
16
- version_cmd = version_cmd + ' --version'
14
+ version_cmd = 'mrconvert --version'
17
15
18
16
@staticmethod
19
17
def parse_version (raw_info ):
@@ -36,11 +34,7 @@ def looseversion(cls):
36
34
37
35
If no version found, use LooseVersion('0.0.0')
38
36
"""
39
- ver = cls .version ()
40
- if ver is None :
41
- return LooseVersion ('0.0.0' )
42
-
43
- return cls .version ())
37
+ return LooseVersion (cls .version () or '0.0.0' )
44
38
45
39
46
40
class MRTrix3BaseInputSpec (CommandLineInputSpec ):
Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ def test_FitTensor_inputs():
32
32
position = - 1 ,
33
33
usedefault = True ,
34
34
),
35
+ reg_term = dict (
36
+ argstr = '-regularisation %f' ,
37
+ max_ver = '0.3.13' ,
38
+ usedefault = True ,
39
+ ),
35
40
)
36
41
inputs = FitTensor .input_spec ()
37
42
You can’t perform that action at this time.
0 commit comments