Skip to content

Commit 63eaeb5

Browse files
committed
order matters when you do sorting
1 parent 43cfb4d commit 63eaeb5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nipype/interfaces/io.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,12 +831,11 @@ 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"])
835834
for key in self.result.keys():
836835
if key == "out_paths":
837836
continue
838837
self.result[key] = [x for (_,x) in human_order_sorted(zip(self.result["out_paths"], self.result[key]))]
839-
838+
self.result["out_paths"] = human_order_sorted(self.result["out_paths"])
840839
return runtime
841840

842841
def _list_outputs(self):

0 commit comments

Comments
 (0)