|
31 | 31 | BaseInterfaceInputSpec)
|
32 | 32 | from .base import FSLCommand, FSLCommandInputSpec, Info
|
33 | 33 |
|
34 |
| -FSVersion = "0" |
35 |
| -_ver = Info.version() |
36 |
| -if _ver: |
37 |
| - if 'dev' in _ver: |
38 |
| - FSVersion = _ver.rstrip().split('-')[-1] + '.dev' |
39 |
| - else: |
40 |
| - FSVersion = _ver.rstrip().split('-v')[-1] |
41 |
| - |
42 |
| - |
43 | 34 | class Level1DesignInputSpec(BaseInterfaceInputSpec):
|
44 | 35 | interscan_interval = traits.Float(mandatory=True,
|
45 | 36 | desc='Interscan interval (in secs)')
|
@@ -703,18 +694,15 @@ class FILMGLS(FSLCommand):
|
703 | 694 | """
|
704 | 695 |
|
705 | 696 | _cmd = 'film_gls'
|
706 |
| - |
| 697 | + input_spec = FILMGLSInputSpec |
| 698 | + output_spec = FILMGLSOutputSpec |
707 | 699 | if Info.version() and LooseVersion(Info.version()) > LooseVersion('5.0.6'):
|
708 | 700 | input_spec = FILMGLSInputSpec507
|
| 701 | + output_spec = FILMGLSOutputSpec507 |
709 | 702 | elif (Info.version() and
|
710 | 703 | LooseVersion(Info.version()) > LooseVersion('5.0.4')):
|
711 | 704 | input_spec = FILMGLSInputSpec505
|
712 |
| - else: |
713 |
| - input_spec = FILMGLSInputSpec |
714 |
| - if Info.version() and LooseVersion(Info.version()) > LooseVersion('5.0.6'): |
715 |
| - output_spec = FILMGLSOutputSpec507 |
716 |
| - else: |
717 |
| - output_spec = FILMGLSOutputSpec |
| 705 | + |
718 | 706 |
|
719 | 707 | def _get_pe_files(self, cwd):
|
720 | 708 | files = None
|
@@ -1087,8 +1075,7 @@ class ContrastMgr(FSLCommand):
|
1087 | 1075 | same location. This has deprecated for FSL versions 5.0.7+ as the necessary
|
1088 | 1076 | corrections file is no longer generated by FILMGLS.
|
1089 | 1077 | """
|
1090 |
| - |
1091 |
| - if LooseVersion(FSVersion) >= LooseVersion("5.0.7"): |
| 1078 | + if Info.version() and LooseVersion(Info.version()) >= LooseVersion("5.0.7"): |
1092 | 1079 | warn("ContrastMgr is deprecated in FSL 5.0.7+", DeprecationWarning)
|
1093 | 1080 | _cmd = 'contrast_mgr'
|
1094 | 1081 | input_spec = ContrastMgrInputSpec
|
|
0 commit comments