Changeset 1a6ec25 in sasview
- Timestamp:
- Feb 25, 2009 10:29:45 AM (16 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:
- 997b620
- Parents:
- 6e659ae8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/SectorSlicer.py
r18eba35 r1a6ec25 231 231 def get_params(self): 232 232 params = {} 233 params[" main_phi"] = self.main_line.theta233 params["Phi"] = self.main_line.theta 234 234 if math.fabs(self.left_line.phi) != math.fabs(self.right_line.phi): 235 235 raise ValueError,"Phi left and phi right are different %f, %f"%(self.left_line.phi, self.right_line.phi) 236 params["left_phi"] = math.fabs(self.left_line.phi) 237 params["right_phi"] = math.fabs(self.right_line.phi) 236 params["Delta_Phi"] = math.fabs(self.left_line.phi) 238 237 params["nbins"] = self.nbins 239 238 return params … … 241 240 def set_params(self, params): 242 241 243 main = params[" main_phi"]244 phi = math.fabs(params[" left_phi"] )242 main = params["Phi"] 243 phi = math.fabs(params["Delta_Phi"] ) 245 244 self.nbins = int(params["nbins"]) 246 245 self.main_line.theta= main
Note: See TracChangeset
for help on using the changeset viewer.