Commit 1835e462a6f293496e9ab7be6ec70d2354e0e0e6

Authored by tatiana
1 parent d7751615

ENH: Imagedata quality considering darwin

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
invesalius/constants.py
@@ -227,12 +227,13 @@ WINDOW_LEVEL = {"Abdomen":(350,50), @@ -227,12 +227,13 @@ WINDOW_LEVEL = {"Abdomen":(350,50),
227 "Vasculature - Hard":(240,80), 227 "Vasculature - Hard":(240,80),
228 "Vasculature - Soft":(650,160)} 228 "Vasculature - Soft":(650,160)}
229 229
230 -if (platform.architecture()[0] == '32bit'): 230 +if (sys.platform == 'win32') and (platform.architecture()[0] == '32bit'):
  231 + REDUCE_IMAGEDATA_QUALITY = 1
  232 +elif (sys.platform == 'darwin'):
231 REDUCE_IMAGEDATA_QUALITY = 1 233 REDUCE_IMAGEDATA_QUALITY = 1
232 else: 234 else:
233 REDUCE_IMAGEDATA_QUALITY = 0 235 REDUCE_IMAGEDATA_QUALITY = 0
234 236
235 -  
236 ICON_DIR = os.path.abspath(os.path.join('..', 'icons')) 237 ICON_DIR = os.path.abspath(os.path.join('..', 'icons'))
237 LANGUAGE_DIR = os.path.abspath(os.path.join('..','locale')) 238 LANGUAGE_DIR = os.path.abspath(os.path.join('..','locale'))
238 239