Skip to content

Commit eec7da2

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

File tree

1 file changed

+1
-1
lines changed
  • nipype/interfaces/diffusion_toolkit

1 file changed

+1
-1
lines changed

nipype/interfaces/diffusion_toolkit/dti.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class DTIRecon(CommandLine):
9797
def _create_gradient_matrix(self, bvecs_file, bvals_file):
9898
_gradient_matrix_file = "gradient_matrix.txt"
9999
with open(bvals_file) as fbvals:
100-
bvals = list(re.split(r"\s+", fbvals.readline().strip()))
100+
bvals = fbvals.readline().strip().split()
101101
with open(bvecs_file) as fbvecs:
102102
bvecs_x = fbvecs.readline().split()
103103
bvecs_y = fbvecs.readline().split()

0 commit comments

Comments
 (0)