From 72653391b74db56fdd622af2ce1e1899d4167b5b Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 6 Oct 2024 17:30:13 +0200 Subject: [PATCH] STY: Further simplification Co-authored-by: Chris Markiewicz --- nipype/interfaces/cmtk/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nipype/interfaces/cmtk/convert.py b/nipype/interfaces/cmtk/convert.py index 4f55242a94..a17ccece6d 100644 --- a/nipype/interfaces/cmtk/convert.py +++ b/nipype/interfaces/cmtk/convert.py @@ -194,7 +194,7 @@ def _run_interface(self, runtime): for data in self.inputs.data_files: _, data_name, _ = split_filename(data) cda = cf.CData(name=data_name, src=data, fileformat="NumPy") - if string.find(data_name, 'lengths') != -1: + if 'lengths' in data_name: cda.dtype = "FinalFiberLengthArray" if string.find(data_name, 'endpoints') != -1: cda.dtype = "FiberEndpoints"