Ignore:
Timestamp:
Sep 7, 2011 6:38:18 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
a0106ac
Parents:
55bb249c
Message:

2D weighting working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/fitpage.py

    r55bb249c r44f9c8b  
    11101110        self._manager.set_fit_weight(uid=self.uid,  
    11111111                                     weight=self.get_weight(), 
    1112                                      is2d = self.is_2D) 
     1112                                     is2d = self._is_2D()) 
    11131113        self._manager.set_fit_range(uid=self.uid,qmin=self.qmin_x,  
    11141114                                   qmax=self.qmax_x) 
     
    11261126                       self.dI_sqrdata, 
    11271127                       self.dI_idata] 
    1128         if self.is_2D: 
     1128        if self._is_2D(): 
    11291129            dy_data = self.data.err_data  
    11301130            data = self.data.data 
     
    11401140                    dy = dy_data 
    11411141                elif button_list.index(item) == 2: 
    1142                     dy = numpy.sqrt(data) 
     1142                    dy = numpy.sqrt(numpy.abs(data)) 
    11431143                elif button_list.index(item) == 3: 
    1144                     dy = data 
     1144                    dy = numpy.abs(data) 
    11451145                break 
    11461146        return dy 
Note: See TracChangeset for help on using the changeset viewer.