Changeset 075d073 in sasview for fittingview/src
- Timestamp:
- Jun 5, 2012 8:15:54 AM (12 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:
- 0d417ac8
- Parents:
- c05234f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitpage.py
r0b477f6 r075d073 22 22 SMEAR_SIZE_H = 0.00 23 23 24 from basepage importBasicPage25 from basepage importPageInfoEvent24 from sans.perspectives.fitting.basepage import BasicPage as BasicPage 25 from sans.perspectives.fitting.basepage import PageInfoEvent as PageInfoEvent 26 26 from sans.models.qsmearing import smear_selection 27 27 … … 140 140 def on_select_data(self, event=None): 141 141 """ 142 On_select_data 142 143 """ 143 144 if event is None and self.dataSource.GetCount() > 0: … … 227 228 sizer_smearer_box.SetMinSize((_DATA_BOX_WIDTH, 60)) 228 229 229 weighting_set_box = wx.StaticBox(self, -1, \230 weighting_set_box = wx.StaticBox(self, -1, \ 230 231 'Set Weighting by Selecting dI Source') 231 232 weighting_box = wx.StaticBoxSizer(weighting_set_box, wx.HORIZONTAL) … … 457 458 0, wx.CENTER, 10 ) 458 459 459 self.sizer_new_smear.Add(self.smear_pinhole_max, 0, wx.CENTER, 10)460 self.sizer_new_smear.Add(self.smear_slit_width, 0, wx.CENTER, 10)461 self.sizer_new_smear.Add(self.smear_data_right, 0, wx.CENTER, 10)460 self.sizer_new_smear.Add(self.smear_pinhole_max, 0, wx.CENTER, 10) 461 self.sizer_new_smear.Add(self.smear_slit_width, 0, wx.CENTER, 10) 462 self.sizer_new_smear.Add(self.smear_data_right, 0, wx.CENTER, 10) 462 463 463 self.sizer_set_smearer.Add(self.smear_message_new_s, 0, wx.CENTER, 10)464 self.sizer_set_smearer.Add(self.smear_message_new_p, 0, wx.CENTER, 10)464 self.sizer_set_smearer.Add(self.smear_message_new_s, 0, wx.CENTER, 10) 465 self.sizer_set_smearer.Add(self.smear_message_new_p, 0, wx.CENTER, 10) 465 466 self.sizer_set_smearer.Add((5, 2)) 466 self.sizer_set_smearer.Add(self.sizer_new_smear, 0, wx.CENTER, 10)467 self.sizer_set_smearer.Add(self.sizer_new_smear, 0, wx.CENTER, 10) 467 468 468 469 # add all to chi2 sizer … … 518 519 519 520 self.reset_qrange.Bind(wx.EVT_BUTTON, self.on_reset_clicked, id=id) 520 self.reset_qrange.SetToolTipString("Reset Q range to the default values")521 self.reset_qrange.SetToolTipString("Reset Q range to the default") 521 522 522 523 sizer = wx.GridSizer(2, 4, 2, 6) … … 598 599 err_text = '' 599 600 self.text_disp_1 = wx.StaticText(self, -1, err_text) 600 self.sizer4_4.Add(self.text_disp_1, (iy, ix), (1, 1), \601 self.sizer4_4.Add(self.text_disp_1, (iy, ix), (1, 1), \ 601 602 wx.EXPAND | wx.ADJUST_MINSIZE, 0) 602 603 603 604 ix += 1 604 605 self.text_disp_min = wx.StaticText(self, -1, 'Min') 605 self.sizer4_4.Add(self.text_disp_min, (iy, ix), (1, 1), \606 self.sizer4_4.Add(self.text_disp_min, (iy, ix), (1, 1), \ 606 607 wx.EXPAND | wx.ADJUST_MINSIZE, 0) 607 608 … … 1159 1160 1160 1161 self._manager._on_model_panel(evt=evt) 1161 self.mbox_description.SetLabel("Model [ %s ]" 1162 self.mbox_description.SetLabel("Model [ %s ]"% str(self.model.name)) 1162 1163 self.mbox_description.SetForegroundColour(wx.BLUE) 1163 1164 self.state.model = self.model.clone() … … 1600 1601 self.onSmear(event=None) 1601 1602 if self.current_smearer != None: 1602 self.current_smearer.set_accuracy(accuracy=self.smear2d_accuracy) 1603 self.current_smearer.set_accuracy(accuracy=\ 1604 self.smear2d_accuracy) 1603 1605 event.Skip() 1604 1606 … … 1661 1663 def _set_smear(self, data): 1662 1664 """ 1665 Set_smear 1663 1666 """ 1664 1667 if data is None: … … 2201 2204 # 2D need to set accuracy 2202 2205 if self._is_2D(): 2203 self.current_smearer.set_accuracy(accuracy=self.smear2d_accuracy) 2206 self.current_smearer.set_accuracy(accuracy=\ 2207 self.smear2d_accuracy) 2204 2208 2205 2209 if msg != None: … … 2211 2215 2212 2216 self._manager.set_smearer(smearer=self.current_smearer, 2213 2214 2215 2216 2217 2217 fid=self.data.id, 2218 qmin=float(self.qmin_x), 2219 qmax=float(self.qmax_x), 2220 enable_smearer=not self.disable_smearer.GetValue(), 2221 uid=self.uid) 2218 2222 return msg 2219 2223 … … 2469 2473 if self.current_smearer == None: 2470 2474 wx.PostEvent(self._manager.parent, 2471 2475 StatusEvent(status="Data contains no smearing information")) 2472 2476 else: 2473 2477 wx.PostEvent(self._manager.parent, 2474 2478 StatusEvent(status="Data contains smearing information")) 2475 2479 2476 2480 self.smear_data_left.Show(True) … … 2755 2759 self.cb1.SetValue(True) 2756 2760 2757 sizer.Add(self.cb1, (iy, ix), (1, 1), \2761 sizer.Add(self.cb1, (iy, ix), (1, 1), \ 2758 2762 wx.LEFT | wx.EXPAND | wx.ADJUST_MINSIZE, 5) 2759 2763 ix += 1
Note: See TracChangeset
for help on using the changeset viewer.