Changeset f867cd9 in sasview for sansview/perspectives/fitting/fitpage.py
- Timestamp:
- Dec 17, 2010 5:26:52 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:
- 7342634
- Parents:
- 0d8c8d7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
rd7b7156 rf867cd9 56 56 self.structurebox.Disable() 57 57 else: 58 self.smearer = smear_selection(self.data )58 self.smearer = smear_selection(self.data, self.model) 59 59 if self.smearer ==None: 60 60 self.enable_smearer.Disable() … … 340 340 341 341 # get smear_selection 342 self.current_smearer= smear_selection( self.data )342 self.current_smearer= smear_selection( self.data, self.model ) 343 343 344 344 # Show only the relevant smear messages, etc … … 874 874 875 875 if self.model != None: 876 temp_smear= None 877 self.onSmear(None) 878 self.smearer.set_model(self.model) 876 879 try: 877 temp_smear= None880 878 881 if self.enable_smearer.GetValue(): 879 882 temp_smear= self.smearer … … 1363 1366 self.structurebox.Disable() 1364 1367 else: 1365 self.smearer = smear_selection( self.data)1368 self.smearer = smear_selection(self.data, self.model) 1366 1369 self.disable_smearer.SetValue(True) 1367 1370 if self.smearer == None: … … 1761 1764 if self._is_2D(): data.dqy_data[data.dqy_data==0] = self.dx_max 1762 1765 else: data.dx[data.dx==0] = self.dx_max 1763 self.current_smearer = smear_selection(data )1766 self.current_smearer = smear_selection(data, self.model) 1764 1767 # 2D need to set accuracy 1765 1768 if self._is_2D(): … … 1940 1943 self.smear_slit_width.SetBackgroundColour(wx.WHITE) 1941 1944 1942 self.current_smearer = smear_selection(data )1945 self.current_smearer = smear_selection(data, self.model) 1943 1946 #temp_smearer = self.current_smearer 1944 1947 ## set smearing value whether or not the data contain the smearing info … … 2001 2004 data = copy.deepcopy(self.data) 2002 2005 # make sure once more if it is smearer 2003 self.current_smearer = smear_selection(data )2006 self.current_smearer = smear_selection(data, self.model) 2004 2007 2005 2008 if self.enable_smearer.GetValue():
Note: See TracChangeset
for help on using the changeset viewer.