Changeset 342a506 in sasview for DataLoader/test
- Timestamp:
- Mar 1, 2011 5:54:15 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:
- b1a65b6
- Parents:
- 9f391af
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/test/utest_averaging.py
rafab469 r342a506 71 71 Test sector averaging 72 72 """ 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): 77 78 self.assertEqual(o.y[i], 1.0) 78 79 … … 81 82 """ 82 83 """ 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) 85 87 self.assertEqual(r.phi_max, phi_max) 86 88 r.nbins_phi = 20 87 89 o = r(self.data) 88 90 self.assertEqual(r.phi_max, phi_max) 89 for i in range( 20):91 for i in range(17): 90 92 self.assertEqual(o.y[i], 1.0) 91 93
Note: See TracChangeset
for help on using the changeset viewer.