source: sasview/src/sas/qtgui/Perspectives/Fitting/GPUOptions.py @ 06ce180

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since 06ce180 was 06ce180, checked in by krzywon, 7 years ago

Basic GPU options window created and GUI hooks added to Fitting menu.

  • Property mode set to 100644
File size: 680 bytes
Line 
1# global
2import sys
3import os
4import types
5
6from PyQt4 import QtCore
7from PyQt4 import QtGui
8from PyQt4 import QtWebKit
9from sas.qtgui.Perspectives.Fitting.UI.GPUOptionsUI import Ui_GPUOptions
10
11from bumps import fitters
12import bumps.options
13
14# Set the default optimizer
15fitters.FIT_DEFAULT_ID = 'lm'
16
17
18class GPUOptions(QtGui.QDialog, Ui_GPUOptions):
19    """
20    OpenCL Dialog to modify the OpenCL options
21    """
22
23    def __init__(self, parent=None):
24        super(GPUOptions, self).__init__(parent)
25        self.setupUi(self)
26
27
28def main():
29    app = QtGui.QApplication(sys.argv)
30
31    w = GPUOptions()
32    w.show()
33
34    sys.exit(app.exec_())
35
36if __name__ == '__main__':
37    main()
Note: See TracBrowser for help on using the repository browser.