|
14 | 14 | from collections import namedtuple
|
15 | 15 | from glob import glob
|
16 | 16 |
|
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) |
42 | 42 |
|
43 | 43 | StudySessionInfo = namedtuple(
|
44 | 44 | 'StudySessionInfo',
|
|
0 commit comments