Changes in src/sas/sasgui/guiframe/gui_manager.py [d3911e3:62243ae] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/gui_manager.py
rd3911e3 r62243ae 152 152 SPLASH_SCREEN_HEIGHT = config.SPLASH_SCREEN_HEIGHT 153 153 SS_MAX_DISPLAY_TIME = config.SS_MAX_DISPLAY_TIME 154 SAS_OPENCL = config.SAS_OPENCL 154 155 if not WELCOME_PANEL_ON: 155 156 WELCOME_PANEL_SHOW = False … … 176 177 else: 177 178 DEFAULT_OPEN_FOLDER = PATH_APP 179 SAS_OPENCL = custom_config.SAS_OPENCL 178 180 except: 179 181 DATALOADER_SHOW = True … … 190 192 CLEANUP_PLOT = False 191 193 DEFAULT_OPEN_FOLDER = PATH_APP 192 194 SAS_OPENCL = None 193 195 DEFAULT_STYLE = config.DEFAULT_STYLE 194 196 … … 225 227 CHILD_FRAME = wx.Frame 226 228 229 #Initiliaze enviromental variable with custom setting but only if variable not set 230 if SAS_OPENCL and not "SAS_OPENCL" in os.environ: 231 os.environ["SAS_OPENCL"] = SAS_OPENCL 227 232 228 233 class ViewerFrame(PARENT_FRAME): … … 1950 1955 item, _, _ = value 1951 1956 item.Check(True) 1952 self._data_panel.on_remove(None, False)1953 1957 1954 1958 wx.PostEvent(self, StatusEvent(status="Loading Project file...")) … … 1963 1967 # Reset to a base state 1964 1968 self._on_reset_state() 1969 self._data_panel.on_remove(None, False) 1965 1970 # Load the project file 1966 1971 self.load_state(path=path, is_project=True) … … 1990 1995 wx.PostEvent(self, 1991 1996 StatusEvent(status="Completed saving.")) 1992 except Exception:1997 except: 1993 1998 msg = "Error occurred while saving: " 1994 msg += traceback.format_exc()1995 1999 msg += "To save, the application panel should have a data set.." 1996 2000 wx.PostEvent(self, StatusEvent(status=msg)) … … 2041 2045 logging.warning(msg) 2042 2046 wx.PostEvent(self, StatusEvent(status=msg, info="error")) 2043 except Exception:2047 except: 2044 2048 msg = "Error occurred while saving: " 2045 msg += traceback.format_exc()2046 2049 msg += "To save, at least one application panel " 2047 2050 msg += "should have a data set.." … … 2458 2461 group_id=group_id, 2459 2462 action='remove')) 2460 # remove res plot: Todo: improve2461 2463 wx.CallAfter(self._remove_res_plot, new_plot.id) 2462 2464 self._data_manager.delete_data(data_id=data_id,
Note: See TracChangeset
for help on using the changeset viewer.