Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/gpu_options.py
r4638f1d ra9279cc 49 49 boxsizer = wx.BoxSizer(orient=wx.VERTICAL) 50 50 self.option_button = {} 51 for index, fitterin enumerate(clinfo):51 for index, clopt in enumerate(clinfo): 52 52 button = wx.RadioButton(self.panel1, -1, 53 label= fitter, name=fitter)54 if fitter!= "No OpenCL":55 self.option_button[ fitter] = str(index)53 label=clopt, name=clopt) 54 if clopt != "No OpenCL": 55 self.option_button[clopt] = str(index) 56 56 else: 57 self.option_button[ fitter] = "None"57 self.option_button[clopt] = "None" 58 58 self.Bind(wx.EVT_RADIOBUTTON, self.OnRadio, id=button.GetId()) 59 59 boxsizer.Add(button, 0, 0) … … 68 68 69 69 accept_btn = wx.Button(self, wx.ID_OK) 70 accept_btn.SetToolTipString("Accept new options for GPU")70 accept_btn.SetToolTipString("Accept OpenCL settings") 71 71 72 72 help_btn = wx.Button(self, wx.ID_HELP, 'Help') … … 74 74 75 75 self.Bind(wx.EVT_BUTTON, self.OnAccept, accept_btn) 76 if help is not None: 77 self.Bind(wx.EVT_BUTTON, self.OnHelp, help_btn) 78 76 self.Bind(wx.EVT_BUTTON, self.OnHelp, help_btn) 79 77 self.Bind(wx.EVT_CLOSE, self.OnClose) 80 78 … … 113 111 os.environ["SAS_OPENCL"] = self.option_button[button.Name] 114 112 sasmodels.kernelcl.ENV = None 113 #Need to reload sasmodels.core module to account SAS_OPENCL = "None" 115 114 reload(sasmodels.core) 116 115
Note: See TracChangeset
for help on using the changeset viewer.