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 |
---|
2 | import sys |
---|
3 | import os |
---|
4 | import types |
---|
5 | |
---|
6 | from PyQt4 import QtCore |
---|
7 | from PyQt4 import QtGui |
---|
8 | from PyQt4 import QtWebKit |
---|
9 | from sas.qtgui.Perspectives.Fitting.UI.GPUOptionsUI import Ui_GPUOptions |
---|
10 | |
---|
11 | from bumps import fitters |
---|
12 | import bumps.options |
---|
13 | |
---|
14 | # Set the default optimizer |
---|
15 | fitters.FIT_DEFAULT_ID = 'lm' |
---|
16 | |
---|
17 | |
---|
18 | class 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 | |
---|
28 | def main(): |
---|
29 | app = QtGui.QApplication(sys.argv) |
---|
30 | |
---|
31 | w = GPUOptions() |
---|
32 | w.show() |
---|
33 | |
---|
34 | sys.exit(app.exec_()) |
---|
35 | |
---|
36 | if __name__ == '__main__': |
---|
37 | main() |
---|
Note: See
TracBrowser
for help on using the repository browser.