Skip to content

Commit d8a4e55

Browse files
committed
fix: add missing changes from #48 and #56
1 parent 8fca121 commit d8a4e55

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

heudiconv/utils.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,31 @@
1414
from collections import namedtuple
1515
from glob import glob
1616

17-
SeqInfo = namedtuple(
18-
'SeqInfo',
19-
['total_files_till_now', # 0
20-
'example_dcm_file', # 1
21-
'series_id', # 2
22-
'unspecified1', # 3
23-
'unspecified2', # 4
24-
'unspecified3', # 5
25-
'dim1', 'dim2', 'dim3', 'dim4', # 6, 7, 8, 9
26-
'TR', 'TE', # 10, 11
27-
'protocol_name', # 12
28-
'is_motion_corrected', # 13
29-
'is_derived', # 14
30-
'patient_id', # 15
31-
'study_description', # 16
32-
'referring_physician_name', # 17
33-
'series_description', # 18
34-
'sequence_name', # 19
35-
'image_type', # 20
36-
'accession_number', # 21
37-
'patient_age', # 22
38-
'patient_sex', # 23
39-
'date' # 24
40-
]
41-
)
17+
seqinfo_fields = [
18+
'total_files_till_now', # 0
19+
'example_dcm_file', # 1
20+
'series_id', # 2
21+
'dcm_dir_name', # 3
22+
'unspecified2', # 4
23+
'unspecified3', # 5
24+
'dim1', 'dim2', 'dim3', 'dim4', # 6, 7, 8, 9
25+
'TR', 'TE', # 10, 11
26+
'protocol_name', # 12
27+
'is_motion_corrected', # 13
28+
'is_derived', # 14
29+
'patient_id', # 15
30+
'study_description', # 16
31+
'referring_physician_name', # 17
32+
'series_description', # 18
33+
'sequence_name', # 19
34+
'image_type', # 20
35+
'accession_number', # 21
36+
'patient_age', # 22
37+
'patient_sex', # 23
38+
'date' # 24
39+
]
40+
41+
SeqInfo = namedtuple('SeqInfo', seqinfo_fields)
4242

4343
StudySessionInfo = namedtuple(
4444
'StudySessionInfo',

0 commit comments

Comments
 (0)