Commit 4068cf16646cfb017e831e069f84ee56853eb5fa
1 parent
72858e0b
Exists in
master
and in
12 other branches
FIX: Fixed problems with import KBCT (Koning Breast CT) and Anatomage
Showing
2 changed files
with
6 additions
and
2 deletions
Show diff stats
invesalius/reader/dicom_reader.py
@@ -188,7 +188,7 @@ class LoadDicom: | @@ -188,7 +188,7 @@ class LoadDicom: | ||
188 | level = [float(value) for value in data.split('\\')][0] | 188 | level = [float(value) for value in data.split('\\')][0] |
189 | data = data_dict[str(0x028)][str(0x1051)] | 189 | data = data_dict[str(0x028)][str(0x1051)] |
190 | window = [float(value) for value in data.split('\\')][0] | 190 | window = [float(value) for value in data.split('\\')][0] |
191 | - except(KeyError): | 191 | + except(KeyError, ValueError): |
192 | level = 300.0 | 192 | level = 300.0 |
193 | window = 2000.0 | 193 | window = 2000.0 |
194 | 194 |
invesalius/session.py
@@ -17,7 +17,11 @@ | @@ -17,7 +17,11 @@ | ||
17 | # detalhes. | 17 | # detalhes. |
18 | #-------------------------------------------------------------------------- | 18 | #-------------------------------------------------------------------------- |
19 | 19 | ||
20 | -import ConfigParser | 20 | +try: |
21 | + import configparser as ConfigParser | ||
22 | +except(ImportError): | ||
23 | + import ConfigParser | ||
24 | + | ||
21 | import os | 25 | import os |
22 | import shutil | 26 | import shutil |
23 | import sys | 27 | import sys |