File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
nipype/interfaces/freesurfer Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 38
38
39
39
# Keeping this to avoid breaking external programs that depend on it, but
40
40
# this should not be used internally
41
- FSVersion = Info .looseversion ()
41
+ FSVersion = Info .looseversion (). vstring
42
42
43
43
44
44
class ParseDICOMDirInputSpec (FSTraitedSpec ):
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
3
3
# vi: set ft=python sts=4 ts=4 sw=4 et:
4
+ from builtins import str
4
5
import os
5
6
6
7
import pytest
@@ -154,3 +155,9 @@ def test_bbregister(create_files_in_directory):
154
155
'--reg {base}_bbreg_fsaverage.dat '
155
156
'--mov {full} --s fsaverage' .format (
156
157
full = filelist [0 ], base = base ))
158
+
159
+ def test_FSVersion ():
160
+ """Check that FSVersion is a string that can be compared with LooseVersion
161
+ """
162
+ assert isinstance (freesurfer .preprocess .FSVersion , str )
163
+ assert LooseVersion (freesurfer .preprocess .FSVersion ) >= LooseVersion ("0" )
You can’t perform that action at this time.
0 commit comments