Changeset 9e37661 in sasview for Invariant


Ignore:
Timestamp:
Jan 9, 2010 4:59:12 PM (14 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
793e52f
Parents:
46d50ca
Message:

invariant: minor change, normalization should be done after smearing, not before.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Invariant/invariant.py

    r46d50ca r9e37661  
    116116 
    117117        # Compute theory data f(x) 
    118         fx[self.idx_unsmeared] = self.data.y[self.idx_unsmeared]/sigma[self.idx_unsmeared] 
     118        fx[self.idx_unsmeared] = self.data.y[self.idx_unsmeared] 
    119119        ## Smear theory data 
    120120        if self.smearer is not None: 
    121121            fx = self.smearer(fx, self._first_unsmeared_bin,self._last_unsmeared_bin) 
     122         
     123        fx[self.idx_unsmeared] = fx[self.idx_unsmeared]/sigma[self.idx_unsmeared] 
    122124         
    123125        ##power is given only for function = power_law     
Note: See TracChangeset for help on using the changeset viewer.