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 80c5a7c commit 2d63f5aCopy full SHA for 2d63f5a
nibabel/parrec.py
@@ -95,6 +95,7 @@
95
import re
96
from io import StringIO
97
from locale import getpreferredencoding
98
+from collections import OrderedDict
99
100
from .keywordonly import kw_only_meth
101
from .spatialimages import SpatialHeader, SpatialImage
@@ -1160,7 +1161,7 @@ def get_volume_labels(self):
1160
1161
# the value at slice 1.
1162
sl1_indices = image_defs['slice number'][sorted_indices] == 1
1163
- sort_info = {}
1164
+ sort_info = OrderedDict(non_unique_keys)
1165
for key in non_unique_keys:
1166
sort_info[key] = image_defs[key][sorted_indices][sl1_indices]
1167
return sort_info
0 commit comments