Skip to content

Commit 7265339

Browse files
STY: Further simplification
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 5f1b823 commit 7265339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/cmtk/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def _run_interface(self, runtime):
194194
for data in self.inputs.data_files:
195195
_, data_name, _ = split_filename(data)
196196
cda = cf.CData(name=data_name, src=data, fileformat="NumPy")
197-
if string.find(data_name, 'lengths') != -1:
197+
if 'lengths' in data_name:
198198
cda.dtype = "FinalFiberLengthArray"
199199
if string.find(data_name, 'endpoints') != -1:
200200
cda.dtype = "FiberEndpoints"

0 commit comments

Comments
 (0)