Changeset 342a506 in sasview for DataLoader/test


Ignore:
Timestamp:
Mar 1, 2011 5:54:15 PM (14 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:
b1a65b6
Parents:
9f391af
Message:

Added x_err and more correction on determining q values, some utest are updates but many more to go

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/test/utest_averaging.py

    rafab469 r342a506  
    7171            Test sector averaging 
    7272        """ 
    73         r = SectorPhi(r_min=self.qmin, r_max=3*self.qmin, phi_min=0, phi_max=math.pi*2.0) 
    74         r.nbins_phi = 20 
    75         o = r(self.data) 
    76         for i in range(20): 
     73        r = SectorPhi(r_min=self.qmin, r_max=3*self.qmin,  
     74                      phi_min=0, phi_max=math.pi*2.0) 
     75        r.nbins_phi = 20 
     76        o = r(self.data) 
     77        for i in range(7): 
    7778            self.assertEqual(o.y[i], 1.0) 
    7879             
     
    8182        """ 
    8283        """ 
    83         phi_max = 1.5 
    84         r = SectorPhi(r_min=self.qmin, r_max=3*self.qmin, phi_min=0, phi_max=phi_max) 
     84        phi_max = math.pi * 1.5 
     85        r = SectorPhi(r_min=self.qmin, r_max=3*self.qmin,  
     86                      phi_min=0, phi_max=phi_max) 
    8587        self.assertEqual(r.phi_max, phi_max) 
    8688        r.nbins_phi = 20 
    8789        o = r(self.data) 
    8890        self.assertEqual(r.phi_max, phi_max) 
    89         for i in range(20): 
     91        for i in range(17): 
    9092            self.assertEqual(o.y[i], 1.0) 
    9193             
Note: See TracChangeset for help on using the changeset viewer.