Skip to content

Commit d662718

Browse files
committed
RF: return back indexes in comments for seqinfo_fields
They were originally introduced (and then removed without reasoning in e529f5a) to make it easier to grasp what fields some heuristics, accessing them by indexes, are interested in. I would prefer to keep them. Also minimizes the diff for the PR
1 parent c1d17aa commit d662718

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

heudiconv/utils.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,28 @@
2121

2222

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

4848
SeqInfo = namedtuple('SeqInfo', seqinfo_fields)

0 commit comments

Comments
 (0)