File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ def convert_to_traits_type(dipy_type, is_file=False):
110
110
"""Convert DIPY type to Traits type."""
111
111
dipy_type = dipy_type .lower ()
112
112
is_mandatory = bool ("optional" not in dipy_type )
113
- if "variable" in dipy_type and "string " in dipy_type :
113
+ if "variable" in dipy_type and "str " in dipy_type :
114
114
return traits .ListStr , is_mandatory
115
115
elif "variable" in dipy_type and "int" in dipy_type :
116
116
return traits .ListInt , is_mandatory
@@ -120,9 +120,9 @@ def convert_to_traits_type(dipy_type, is_file=False):
120
120
return traits .ListBool , is_mandatory
121
121
elif "variable" in dipy_type and "complex" in dipy_type :
122
122
return traits .ListComplex , is_mandatory
123
- elif "string " in dipy_type and not is_file :
123
+ elif "str " in dipy_type and not is_file :
124
124
return traits .Str , is_mandatory
125
- elif "string " in dipy_type and is_file :
125
+ elif "str " in dipy_type and is_file :
126
126
return File , is_mandatory
127
127
elif "int" in dipy_type :
128
128
return traits .Int , is_mandatory
You can’t perform that action at this time.
0 commit comments