Changeset 64bda1e in sasview for sansview/perspectives/fitting/fitpage.py
- Timestamp:
- Jan 4, 2011 2:28:37 PM (14 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:
- b9b9930
- Parents:
- 5797edc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
r7342634 r64bda1e 874 874 875 875 if self.model != None: 876 # Reset smearer, model and data 877 self.set_data(self.data) 878 # update smearer sizer 879 self.onSmear(None) 876 880 try: 877 temp_smear= None 878 self.onSmear(None) 879 self.smearer.set_model(self.model) 881 temp_smear = None 880 882 if self.enable_smearer.GetValue(): 883 # Set the smearer environments 881 884 temp_smear= self.smearer 882 885 #self.compute_chisqr(temp_smear) … … 890 893 ## set smearing value whether or not 891 894 # the data contain the smearing info 892 evt = ModelEventbox(model =self.model,893 smearer =temp_smear,894 qmin = float(self.qmin_x),895 qmax = float(self.qmax_x))895 evt = ModelEventbox(model = self.model, 896 smearer = temp_smear, 897 qmin = float(self.qmin_x), 898 qmax = float(self.qmax_x)) 896 899 else: 897 evt = ModelEventbox(model =self.model)900 evt = ModelEventbox(model = self.model) 898 901 899 self.manager._on_model_panel(evt =evt)902 self.manager._on_model_panel(evt = evt) 900 903 self.state.model = self.model.clone() 901 904 self.state.model.name = self.model.name … … 1979 1982 if self.check_invalid_panel(): 1980 1983 return 1981 if self.model == None:1984 if self.model == None: 1982 1985 self.disable_smearer.SetValue(True) 1983 1986 msg="Please select a Model first..."
Note: See TracChangeset
for help on using the changeset viewer.