Changes in src/sas/sasgui/perspectives/fitting/fitpage.py [bf44249e:c8e1996] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fitpage.py
rbf44249e rc8e1996 81 81 flag = check_data_validity(self.data) & (self.model is not None) 82 82 self.btFit.Enable(flag) 83 83 84 84 def on_set_focus(self, event): 85 85 """ 86 Override the basepage focus method to ensure the save flag is set 86 Override the basepage focus method to ensure the save flag is set 87 87 properly when focusing on the fit page. 88 88 """ … … 238 238 239 239 weighting_set_box = wx.StaticBox(self, wx.ID_ANY, 240 240 'Set Weighting by Selecting dI Source') 241 241 weighting_box = wx.StaticBoxSizer(weighting_set_box, wx.HORIZONTAL) 242 242 sizer_weighting = wx.BoxSizer(wx.HORIZONTAL) … … 1164 1164 if event is not None: 1165 1165 if (event.GetEventObject() == self.formfactorbox 1166 and self.structurebox.GetLabel() != 'None')\1167 or event.GetEventObject() == self.structurebox\1168 or event.GetEventObject() == self.multifactorbox:1166 and self.structurebox.GetLabel() != 'None')\ 1167 or event.GetEventObject() == self.structurebox\ 1168 or event.GetEventObject() == self.multifactorbox: 1169 1169 copy_flag = self.get_copy_params() 1170 1170 is_poly_enabled = self.enable_disp.GetValue() … … 1205 1205 self._keep.Enable(not self.batch_on) 1206 1206 self._set_save_flag(True) 1207 #Setting smearing for cases with and without data. 1208 self._set_smear(self.data) 1207 self._set_smear(self.data) 1209 1208 1210 1209 # more disables for 2D … … 1213 1212 try: 1214 1213 # update smearer sizer 1215 #This call for smearing set up caused double evaluation of 1216 #I(q) and double compilation as results 1217 #self.onSmear(None) 1214 self.onSmear(None) 1218 1215 temp_smear = None 1219 1216 if not self.disable_smearer.GetValue(): … … 1229 1226 # set smearing value whether or not data contain the smearing info 1230 1227 evt = ModelEventbox(model=self.model, 1231 1232 1233 1234 1235 1236 1228 smearer=temp_smear, 1229 enable_smearer=not self.disable_smearer.GetValue(), 1230 qmin=float(self.qmin_x), 1231 uid=self.uid, 1232 caption=self.window_caption, 1233 qmax=float(self.qmax_x)) 1237 1234 1238 1235 self._manager._on_model_panel(evt=evt)
Note: See TracChangeset
for help on using the changeset viewer.