Changeset f72333f in sasview for sansview/perspectives/fitting/basepage.py
- Timestamp:
- May 10, 2010 6:50:05 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:
- 4fbc93e
- Parents:
- 2d409fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r65b77529 rf72333f 14 14 (PreviousStateEvent, EVT_PREVIOUS_STATE) = wx.lib.newevent.NewEvent() 15 15 (NextStateEvent, EVT_NEXT_STATE) = wx.lib.newevent.NewEvent() 16 16 17 _BOX_WIDTH = 76 17 18 _QMIN_DEFAULT = 0.001 … … 55 56 self.data = None 56 57 self.mask = None 58 self.theory = None 57 59 self.state = PageState(parent=parent) 58 60 ## dictionary containing list of models … … 136 138 #self.onSave(event=None) 137 139 self.Bind(wx.EVT_CONTEXT_MENU, self.onContextMenu) 138 140 139 141 ## create the basic structure of the panel with empty sizer 140 142 self.define_page_structure() … … 1097 1099 flag = self.update_pinhole_smear() 1098 1100 else: 1099 self.manager.set_smearer (smearer=temp_smearer, qmin= float(self.qmin_x),1101 self.manager.set_smearer_nodraw(smearer=temp_smearer, qmin= float(self.qmin_x), 1100 1102 qmax= float(self.qmax_x)) 1101 1103 elif not is_2Ddata: … … 1362 1364 temp_smear= self.current_smearer 1363 1365 1364 self.manager.draw_model(self.model, data=self.data, 1366 self.manager.draw_model(self.model, 1367 data=self.data, 1365 1368 smearer= temp_smear, 1366 1369 qmin=float(self.qmin_x), 1367 1370 qmax=float(self.qmax_x), 1368 1371 qstep= float(self.num_points), 1369 enable2D=self.enable2D) 1370 1372 enable2D=self.enable2D) 1371 1373 1372 1374 def _set_model_sizer(self,sizer, box_sizer, title="", object=None): … … 1507 1509 item must model class 1508 1510 """ 1511 st = time.time() 1509 1512 for models in list: 1510 1513 model= models() … … 1514 1517 name = model.name 1515 1518 combobox.Append(name,models) 1516 1519 1517 1520 return 0 1518 1521 … … 1629 1632 self.structurebox.Enable() 1630 1633 self.text2.Enable() 1631 if self.data.__class__.__name__ =="Data2D":1632 self.smear_description_2d.Show(True)1634 #if self.data.__class__.__name__ =="Data2D": 1635 #self.smear_description_2d.Show(True) 1633 1636 1634 1637 s_id = self.structurebox.GetCurrentSelection() … … 2152 2155 if ON_MAC == True: 2153 2156 time.sleep(1) 2154 2157 2158 2155 2159 def on_reset_clicked(self,event): 2156 2160 """ … … 2167 2171 self.qmin_x = data_min 2168 2172 self.qmax_x = math.sqrt(x*x + y*y) 2173 # check smearing 2174 if not self.disable_smearer.GetValue(): 2175 temp_smearer= self.current_smearer 2176 ## set smearing value whether or not the data contain the smearing info 2177 if self.pinhole_smearer.GetValue(): 2178 flag = self.update_pinhole_smear() 2179 else: 2180 flag = True 2169 2181 elif self.data.__class__.__name__ != "Data2D": 2170 2182 self.qmin_x = min(self.data.x) … … 2205 2217 #reset the q range values 2206 2218 self._reset_plotting_range(self.state) 2207 self.compute_chisqr(smearer=self.current_smearer)2219 #self.compute_chisqr(smearer=self.current_smearer) 2208 2220 #Re draw plot 2209 2221 self._draw_model()
Note: See TracChangeset
for help on using the changeset viewer.