Changes in / [6435594:861f1880] in sasview
- Location:
- src/sas/sasgui
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/gui_manager.py
r64ca561 r49165488 2122 2122 """ 2123 2123 if custom_config is not None: 2124 sas_opencl = os.environ.get("SAS_OPENCL" ,None)2124 sas_opencl = os.environ.get("SAS_OPENCL") 2125 2125 new_config_lines = [] 2126 2126 config_file = open(custom_config.__file__) -
src/sas/sasgui/guiframe/local_perspectives/data_loader/data_loader.py
r463e7ffc rc1d5aea 92 92 if dlg.ShowModal() == wx.ID_OK: 93 93 file_list = dlg.GetPaths() 94 if len(file_list) >= 0 and not file_list[0] isNone:94 if len(file_list) >= 0 and file_list[0] is not None: 95 95 self._default_save_location = os.path.dirname(file_list[0]) 96 96 path = self._default_save_location -
src/sas/sasgui/perspectives/calculator/image_viewer.py
r25b9707a rc1d5aea 42 42 """ 43 43 parent = self.parent 44 if parent ==None:44 if parent is None: 45 45 location = os.getcwd() 46 46 else: 47 47 location = parent._default_save_location 48 48 path_list = self.choose_data_file(location=location) 49 if path_list ==None:49 if path_list is None: 50 50 return 51 if len(path_list) >= 0 and not(path_list[0]is None):52 if parent !=None:51 if len(path_list) >= 0 and path_list[0] is not None: 52 if parent is not None: 53 53 parent._default_save_location = os.path.dirname(path_list[0]) 54 54 err_msg = '' -
src/sas/sasgui/perspectives/pr/inversion_panel.py
r463e7ffc rc1d5aea 940 940 Choose a new input file for I(q) 941 941 """ 942 if not self._manager isNone:942 if self._manager is not None: 943 943 self.plot_data.SetValue(str(data.name)) 944 944 try: -
src/sas/sasgui/perspectives/pr/pr.py
rf3bf622 rc1d5aea 1047 1047 try: 1048 1048 pr = self._create_file_pr(data) 1049 if not pr isNone:1049 if pr is not None: 1050 1050 self.pr = pr 1051 1051 self.perform_estimate() -
src/sas/sasgui/plottools/PlotPanel.py
r463e7ffc rc1d5aea 1403 1403 if self.scale == 'log_{10}': 1404 1404 self.scale = 'linear' 1405 if not self.zmin_2D isNone:1405 if self.zmin_2D is not None: 1406 1406 zmin_2D_temp = math.pow(10, self.zmin_2D) 1407 if not self.zmax_2D isNone:1407 if self.zmax_2D is not None: 1408 1408 zmax_2D_temp = math.pow(10, self.zmax_2D) 1409 1409 else: 1410 1410 self.scale = 'log_{10}' 1411 if not self.zmin_2D isNone:1411 if self.zmin_2D is not None: 1412 1412 # min log value: no log(negative) 1413 1413 if self.zmin_2D <= 0: … … 1415 1415 else: 1416 1416 zmin_2D_temp = math.log10(self.zmin_2D) 1417 if not self.zmax_2D isNone:1417 if self.zmax_2D is not None: 1418 1418 zmax_2D_temp = math.log10(self.zmax_2D) 1419 1419
Note: See TracChangeset
for help on using the changeset viewer.