Commit 7aabaaed65f0435130cd5ddd0587134544b1875b
1 parent
b2325625
Exists in
master
and in
6 other branches
FIX: A try ... except in dicom.py to older gdcm
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
invesalius/reader/dicom.py
... | ... | @@ -1339,7 +1339,10 @@ class Parser(): |
1339 | 1339 | img = self.gdcm_reader.GetImage() |
1340 | 1340 | direc_cosines = img.GetDirectionCosines() |
1341 | 1341 | orientation = gdcm.Orientation() |
1342 | - type = orientation.GetType(tuple(direc_cosines)) | |
1342 | + try: | |
1343 | + type = orientation.GetType(tuple(direc_cosines)) | |
1344 | + except TypeError: | |
1345 | + type = orientation.GetType(direc_cosines) | |
1343 | 1346 | label = orientation.GetLabel(type) |
1344 | 1347 | |
1345 | 1348 | if (label): | ... | ... |