Skip to content

Commit 43cfb4d

Browse files
committed
PEP8 and fixed out_paths sort
1 parent bd5e4fe commit 43cfb4d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

nipype/interfaces/io.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@ def _run_interface(self, runtime):
831831
raise RuntimeError("Regular expression did not match any files!")
832832

833833
#sort all keys acording to out_paths
834+
self.result["out_paths"] = human_order_sorted(self.result["out_paths"])
834835
for key in self.result.keys():
835836
if key == "out_paths":
836837
continue

nipype/utils/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def atoi(text):
1717
return int(text) if text.isdigit() else text
1818

1919
def natural_keys(text):
20-
if isinstance(text,tuple):
20+
if isinstance(text, tuple):
2121
text = text[0]
2222
return [ atoi(c) for c in re.split('(\d+)', text) ]
2323

0 commit comments

Comments
 (0)