We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1f3cb1 + 20143ec commit aee1d95Copy full SHA for aee1d95
dpx/srxplanargui/calibration.py
@@ -46,12 +46,11 @@
46
from diffpy.srxplanar.selfcalibrate import selfCalibrate
47
from diffpy.srxplanar.srxplanarconfig import checkMax
48
49
-try:
50
- import pyFAI
+from dpx.confutils.tools import module_exists_lower
+if module_exists_lower('pyfai'):
51
missingpyFAI = False
52
-except:
+else:
53
missingpyFAI = True
54
- print "Please download and install pyFAI to do the calibration"
55
56
class CalibrationHandler(Handler):
57
dpx/srxplanargui/srxguiapp.py
@@ -35,6 +35,7 @@
35
import traitsui.wx.constants
36
traitsui.wx.constants.WindowColor = wx.Colour(244, 243, 238)
37
else:
38
+ os.environ['QT_API'] = 'pyside'
39
ETSConfig.toolkit = 'qt4'
40
from pyface.qt import QtGui, QtCore
41
0 commit comments