Commit 22d6f6d56c993007072643241d019029d09aee80
1 parent
ad7335fd
Exists in
master
and in
68 other branches
FIX: Bug open case in the sagital orientation
Showing
2 changed files
with
6 additions
and
4 deletions
Show diff stats
invesalius/control.py
... | ... | @@ -40,10 +40,10 @@ class Controller(): |
40 | 40 | |
41 | 41 | for key in dicom_series: |
42 | 42 | patient_name = key[0] |
43 | - dicom = dicom_series[key][0][0] | |
43 | + dicom = dicom_series[key][0] | |
44 | 44 | |
45 | 45 | # Compute how many images per series: |
46 | - n_images = str(len(dicom_series[key][0])) | |
46 | + n_images = str(len(dicom_series[key])) | |
47 | 47 | # Add date and time in a single field: |
48 | 48 | date_time = "%s %s"%(dicom.acquisition.date, |
49 | 49 | dicom.acquisition.time) | ... | ... |
invesalius/reader/dicom_grouper.py
... | ... | @@ -286,8 +286,10 @@ class DicomGroups: |
286 | 286 | key = tmp1.keys()[m] |
287 | 287 | information = tmp1[key] |
288 | 288 | |
289 | - new_key = (x,information.patient.name, information.image.orientation_label, | |
290 | - information.acquisition.serie_number) | |
289 | + #new_key = (x,information.patient.name, information.image.orientation_label, | |
290 | + # information.acquisition.serie_number) | |
291 | + | |
292 | + new_key = (information.patient.name, None, x, information.image.orientation_label) | |
291 | 293 | |
292 | 294 | if (new_key in groups_dcm_.keys()): |
293 | 295 | groups_dcm_[new_key].append(information) | ... | ... |