Changeset 4225aed in sasview for sansview/perspectives/fitting
- Timestamp:
- Aug 2, 2011 4:33:43 PM (13 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:
- 67ae937
- Parents:
- 75daa79
- Location:
- sansview/perspectives/fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
rcc31608 r4225aed 68 68 self.mask = None 69 69 self.uid = None 70 #Q range for data set 71 self.qmin_data_set = None 72 self.qmax_data_set = None 70 73 ## Q range 71 74 self.qmin = None -
sansview/perspectives/fitting/fitpage.py
r75daa79 r4225aed 97 97 self.data_list = data_list 98 98 self.enable_datasource() 99 if data_list: 100 qmin, qmax, _ = self.compute_data_range(data_list[0]) 101 self.qmin_data_set, self.qmax_data_set = qmin, qmax 99 102 for data in self.data_list: 100 103 if data is not None: 104 self.compute_data_set_range(data) 101 105 self.dataSource.Append(str(data.name), clientData=data) 106 107 print "fill_data_combox", self.qmin_data_set, self.qmax_data_set 102 108 self.dataSource.SetSelection(0) 103 109 self.on_select_data(event=None) … … 292 298 # StaticText for smear 293 299 #self.tcChi = wx.StaticText(self, -1, "-", style=wx.ALIGN_LEFT) 294 self.smear_description_none = wx.StaticText(self, -1, smear_message_none , style=wx.ALIGN_LEFT) 295 self.smear_description_dqdata = wx.StaticText(self, -1, smear_message_dqdata , style=wx.ALIGN_LEFT) 296 self.smear_description_type = wx.StaticText(self, -1, "Type:" , style=wx.ALIGN_LEFT) 297 self.smear_description_accuracy_type = wx.StaticText(self, -1, "Accuracy:" , style=wx.ALIGN_LEFT) 298 self.smear_description_smear_type = BGTextCtrl(self, -1, size=(57,20), style=0) 300 self.smear_description_none = wx.StaticText(self, -1, 301 smear_message_none , style=wx.ALIGN_LEFT) 302 self.smear_description_dqdata = wx.StaticText(self, 303 -1, smear_message_dqdata , style=wx.ALIGN_LEFT) 304 self.smear_description_type = wx.StaticText(self, 305 -1, "Type:" , style=wx.ALIGN_LEFT) 306 self.smear_description_accuracy_type = wx.StaticText(self, -1, 307 "Accuracy:" , style=wx.ALIGN_LEFT) 308 self.smear_description_smear_type = BGTextCtrl(self, -1, 309 size=(57,20), style=0) 299 310 self.smear_description_smear_type.SetValue(str(self.dq_l)) 300 311 self.SetBackgroundColour(self.GetParent().GetBackgroundColour()) 301 self.smear_description_2d = wx.StaticText(self, -1, smear_message_2d , style=wx.ALIGN_LEFT) 302 self.smear_message_new_s = wx.StaticText(self, -1, smear_message_new_ssmear , style=wx.ALIGN_LEFT) 303 self.smear_message_new_p = wx.StaticText(self, -1, smear_message_new_psmear , style=wx.ALIGN_LEFT) 312 self.smear_description_2d = wx.StaticText(self, -1, 313 smear_message_2d , style=wx.ALIGN_LEFT) 314 self.smear_message_new_s = wx.StaticText(self, -1, 315 smear_message_new_ssmear, style=wx.ALIGN_LEFT) 316 self.smear_message_new_p = wx.StaticText(self, -1, 317 smear_message_new_psmear , style=wx.ALIGN_LEFT) 304 318 self.smear_description_2d_x = wx.StaticText(self, -1, smear_message_2d_x_title , style=wx.ALIGN_LEFT) 305 319 self.smear_description_2d_x.SetToolTipString(" dQp(parallel) in q_r direction.") … … 464 478 self.model_view.SetToolTipString(hint) 465 479 466 self.shape_rbutton = wx.RadioButton(self, -1, 'Shapes', style=wx.RB_GROUP) 480 self.shape_rbutton = wx.RadioButton(self, -1, 'Shapes', 481 style=wx.RB_GROUP) 467 482 self.shape_indep_rbutton = wx.RadioButton(self, -1, "Shape-Independent") 468 483 self.struct_rbutton = wx.RadioButton(self, -1, "Structure Factor ") … … 1627 1642 return self.enable2D 1628 1643 1644 def compute_data_set_range(self, data): 1645 """ 1646 find the range that include all data in the set 1647 return the minimum and the maximum values 1648 """ 1649 if data is not None: 1650 qmin, qmax, _ = self.compute_data_range(data) 1651 self.qmin_data_set = min(self.qmin_data_set, qmin) 1652 self.qmax_data_set = max(self.qmax_data_set, qmax) 1653 1654 1629 1655 def compute_data_range(self, data): 1630 1656 """ … … 1647 1673 qmax = math.sqrt(x*x + y*y) 1648 1674 npts = len(data.data) 1675 print "compute single data range", qmin, qmax 1649 1676 return qmin, qmax, npts 1650 1677 -
sansview/perspectives/fitting/fitpanel.py
r3f36675 r4225aed 385 385 data_1d_list = [] 386 386 data_2d_list = [] 387 # separate data into data1d and data2d list 387 388 for data in data_list: 388 389 if data.__class__.__name__ == "Data1D":
Note: See TracChangeset
for help on using the changeset viewer.