We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05cc9b9 commit 44b4609Copy full SHA for 44b4609
nipype/interfaces/fsl/model.py
@@ -826,9 +826,7 @@ def _get_pe_files(self, cwd):
826
for line in fp:
827
if line.startswith("/NumWaves"):
828
numpes = int(line.split()[-1])
829
- files = []
830
- for i in range(numpes):
831
- files.append(self._gen_fname("pe%d.nii" % (i + 1), cwd=cwd))
+ files = [self._gen_fname(f"pe{i + 1}.nii", cwd=cwd) for i in range(numpes)]
832
break
833
return files
834
0 commit comments