Changeset 30d103a in sasview for sansview/perspectives/fitting/modelpage.py
- Timestamp:
- Aug 6, 2009 12:22:55 PM (15 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:
- c9aa125
- Parents:
- 1b001a7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/modelpage.py
r6dc9ad8 r30d103a 116 116 117 117 118 def _set_sizer_gaussian(self): 119 """ 120 draw sizer with gaussian dispersity parameters 118 #def _set_sizer_gaussian(self): 119 def _set_sizer_dispersion(self, dispersity): 120 """ 121 draw sizer with gaussian, log or schulz dispersity parameters 121 122 """ 122 123 self.fittable_param=[] … … 134 135 # Create the dispersion objects 135 136 for item in self.model.dispersion.keys(): 136 disp_model = GaussianDispersion() 137 #disp_model = GaussianDispersion() 138 disp_model = dispersity() 137 139 self._disp_obj_dict[item] = disp_model 138 140 self.model.set_dispersion(item, disp_model) … … 297 299 self._draw_model() 298 300 self.model_view.Disable() 301 299 302 300 303 self.set_model_param_sizer(self.model) … … 304 307 for item in self.orientation_params: 305 308 if item[2]!=None: 309 306 310 item[2].Enable() 307 if self.disp_name == "ArrayDispersion":311 if self.disp_name.lower() == "array": 308 312 self._set_sizer_arraydispersion() 309 313 else: … … 437 441 # Set the controls 438 442 #For qmin and qmax, do not use format_number.(If do, qmin and max could be different from what is in the data.) 439 """ 440 self.qmin.SetValue(format_number(self.qmin_x)) 441 self.qmax.SetValue(format_number(self.qmax_x)) 442 self.npts.SetValue(format_number(self.num_points)) 443 """ 443 444 444 self.qmin.SetValue(str(self.qmin_x)) 445 445 self.qmax.SetValue(str(self.qmax_x))
Note: See TracChangeset
for help on using the changeset viewer.