Changeset d555416 in sasview for sansguiframe
- Timestamp:
- Apr 4, 2013 4:16:09 PM (12 years ago)
- Branches:
- master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 6a84c0c
- Parents:
- 240bdc80
- Location:
- sansguiframe/src/sans/guiframe/local_perspectives/plotting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/local_perspectives/plotting/boxSum.py
r8c61e14 rd555416 53 53 self.count = 0 54 54 self.error = 0 55 self.total = 0 56 self.totalerror = 0 57 self.points = 0 55 58 ## Flag to determine if the current figure has moved 56 59 ## set to False == no motion , set to True== motion … … 182 185 box = Boxavg(x_min=x_min, x_max=x_max, y_min=y_min, y_max=y_max) 183 186 self.count, self.error = box(self.base.data2D) 187 # Dig out number of points summed, SMK & PDB, 04/03/2013 188 from sans.dataloader.manipulations import Boxsum 189 boxtotal = Boxsum(x_min=x_min, x_max=x_max, y_min=y_min, y_max=y_max) 190 self.total, self.totalerror, self.points = boxtotal(self.base.data2D) 184 191 185 192 def moveend(self, ev): … … 229 236 params["center_x"] = self.center.x 230 237 params["center_y"] = self.center.y 231 params["count"] = self.count 232 params["errors"] = self.error 238 params["num_points"] = self.points 239 params["avg"] = self.count 240 params["avg_error"] = self.error 241 params["sum"] = self.total 242 params["sum_error"] = self.totalerror 233 243 return params 234 244 … … 238 248 """ 239 249 result = {} 240 result["count"] = self.count 241 result["error"] = self.error 250 result["num_points"] = self.points 251 result["avg"] = self.count 252 result["avg_error"] = self.error 253 params["sum"] = self.total 254 params["sum_error"] = self.totalerror 242 255 return result 243 256 -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/slicerpanel.py
r8c347a6 rd555416 84 84 keys.sort() 85 85 for item in keys: 86 if not item.lower() in ["errors", "count"]: 86 if not item.lower() in ["num_points", "avg", "avg_error", "sum", 87 "sum_error"]: 87 88 n += 1 88 89 text = wx.StaticText(self, -1, item, style=wx.ALIGN_LEFT) … … 101 102 self.bck.Add(ctl, (n-1, 1), flag=wx.TOP|wx.BOTTOM, border=0) 102 103 for item in keys: 103 if item.lower() in ["errors", "count"]: 104 if item.lower() in ["num_points", "avg", "avg_error", "sum", 105 "sum_error"]: 104 106 n += 1 105 107 text = wx.StaticText(self, -1, item + ": ",
Note: See TracChangeset
for help on using the changeset viewer.