Skip to content

Commit

Permalink
STY: Further simplification
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
  • Loading branch information
DimitriPapadopoulos and effigies authored Oct 6, 2024
1 parent 5f1b823 commit 7265339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nipype/interfaces/cmtk/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7265339

Please sign in to comment.