Changeset fa81e94 in sasview for src/sas/sasgui/perspectives/invariant/invariant.py
- Timestamp:
- Nov 15, 2017 4:33:09 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- d4881f6a
- Parents:
- 7c487846
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/invariant/invariant.py
- Property mode changed from 100644 to 100755
r7432acb rfa81e94 133 133 name = data.__class__.__name__ 134 134 msg = "Invariant use only Data1D got: [%s] " % str(name) 135 raise ValueError , msg135 raise ValueError(msg) 136 136 self.compute_helper(data=data) 137 137 … … 169 169 msg += "Please select one.\n" 170 170 if len(data_list) > 1: 171 from invariant_widgets import DataDialog171 from .invariant_widgets import DataDialog 172 172 dlg = DataDialog(data_list=data_1d_list, text=msg) 173 173 if dlg.ShowModal() == wx.ID_OK: … … 191 191 self.compute_helper(data) 192 192 except: 193 msg = "Invariant Set_data: " + str(sys.exc_ value)193 msg = "Invariant Set_data: " + str(sys.exc_info()[1]) 194 194 wx.PostEvent(self.parent, StatusEvent(status=msg, info="error")) 195 195 else: … … 240 240 msg = "invariant.save_file: the data being saved is" 241 241 msg += " not a sas.sascalc.dataloader.data_info.Data1D object" 242 raise RuntimeError , msg242 raise RuntimeError(msg) 243 243 244 244 def set_state(self, state=None, datainfo=None): … … 258 258 msg = "invariant.set_state: datainfo parameter cannot" 259 259 msg += " be None in standalone mode" 260 raise RuntimeError , msg260 raise RuntimeError(msg) 261 261 # Make sure the user sees the invariant panel after loading 262 262 # self.parent.set_perspective(self.perspective) … … 282 282 283 283 except: 284 logger.error("invariant.set_state: %s" % sys.exc_ value)284 logger.error("invariant.set_state: %s" % sys.exc_info()[1]) 285 285 286 286 def on_set_state_helper(self, event=None): … … 320 320 else: 321 321 msg = "Scale can not be zero." 322 raise ValueError , msg322 raise ValueError(msg) 323 323 if len(new_plot.x) == 0: 324 324 return
Note: See TracChangeset
for help on using the changeset viewer.