Changeset fa81e94 in sasview for src/sas/sasgui/guiframe/local_perspectives
- 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
- Location:
- src/sas/sasgui/guiframe/local_perspectives/plotting
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter1D.py
rc416a17 rfa81e94 475 475 try: 476 476 self._onEVT_FUNC_PROPERTY() 477 except Exception, exc:477 except (Exception, exc): 478 478 wx.PostEvent(self.parent, 479 479 StatusEvent(status="Plotting Error: %s" % str(exc), info="error")) … … 492 492 # MAC: forcing to plot 2D avg 493 493 self.canvas._onDrawIdle() 494 except Exception, exc:494 except (Exception, exc): 495 495 wx.PostEvent(self.parent, StatusEvent(status=\ 496 496 "Plotting Error: %s" % str(exc), info="error")) -
src/sas/sasgui/guiframe/local_perspectives/plotting/SectorSlicer.py
rcee5c78 rfa81e94 232 232 msg = "Phi left and phi right are different" 233 233 msg += " %f, %f" % (self.left_line.phi, self.right_line.phi) 234 raise ValueError, msg234 raise (ValueError, msg) 235 235 params["Phi [deg]"] = self.main_line.theta * 180 / numpy.pi 236 236 params["Delta_Phi [deg]"] = numpy.fabs(self.left_line.phi * 180 / numpy.pi) -
src/sas/sasgui/guiframe/local_perspectives/plotting/binder.py
r463e7ffc rfa81e94 187 187 # Check that the trigger is valid 188 188 if trigger not in self._actions: 189 raise ValueError, "%s invalid --- valid triggers are %s" \190 % (trigger, ", ".join(self.events)) 189 raise (ValueError, "%s invalid --- valid triggers are %s" \ 190 % (trigger, ", ".join(self.events))) 191 191 # Register the trigger callback 192 192 self._actions[trigger][artist] = action … … 203 203 """ 204 204 if action not in self.events: 205 raise ValueError, "Trigger expects " + ", ".join(self.events)205 raise (ValueError, "Trigger expects " + ", ".join(self.events)) 206 206 # Tag the event with modifiers 207 207 for mod in ('alt', 'control', 'shift', 'meta'): -
src/sas/sasgui/guiframe/local_perspectives/plotting/boxSlicer.py
rcee5c78 rfa81e94 136 136 if new_slab is None: 137 137 msg = "post data:cannot average , averager is empty" 138 raise ValueError, msg138 raise (ValueError, msg) 139 139 self.averager = new_slab 140 140 if self.direction == "X": … … 152 152 else: 153 153 msg = "post data:no Box Average direction was supplied" 154 raise ValueError, msg154 raise (ValueError, msg) 155 155 # # Average data2D given Qx or Qy 156 156 box = self.averager(x_min=x_min, x_max=x_max, y_min=y_min, y_max=y_max, -
src/sas/sasgui/guiframe/local_perspectives/plotting/plotting.py
r2d9526d rfa81e94 200 200 201 201 msg = "1D Panel of group ID %s could not be created" % str(group_id) 202 raise ValueError, msg202 raise (ValueError, msg) 203 203 204 204 def create_2d_panel(self, data, group_id): … … 218 218 return new_panel 219 219 msg = "2D Panel of group ID %s could not be created" % str(group_id) 220 raise ValueError, msg220 raise (ValueError, msg) 221 221 222 222 def update_panel(self, data, panel): … … 238 238 msg += " to panel %s\n" % str(panel.window_caption) 239 239 msg += "Please edit %s's units, labels" % str(data.name) 240 raise ValueError, msg240 raise (ValueError, msg) 241 241 else: 242 242 if panel.group_id not in data.list_group_id: -
src/sas/sasgui/guiframe/local_perspectives/plotting/sector_mask.py
r7432acb rfa81e94 175 175 msg += "different %f, %f" % (self.left_line.phi, 176 176 self.right_line.phi) 177 raise ValueError, msg177 raise (ValueError, msg) 178 178 params["Phi"] = self.main_line.theta 179 179 params["Delta_Phi"] = math.fabs(self.left_line.phi)
Note: See TracChangeset
for help on using the changeset viewer.