Changeset b517792 in sasview for sansdataloader/test/utest_averaging.py
- Timestamp:
- Dec 9, 2011 12:42:35 PM (13 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:
- 849fa92
- Parents:
- b57e704
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansdataloader/test/utest_averaging.py
rca3b9c5d rb517792 125 125 126 126 o = r(self.data) 127 127 128 answer = Loader().load('avg_testdata.txt') 128 129 for i in range(r.nbins_phi): … … 140 141 r = Boxsum(x_min=.01, x_max=.015, y_min=0.01, y_max=0.015) 141 142 s, ds = r(self.data) 142 self.assertAlmostEqual(s, 151.81809601016641, 4)143 self.assertAlmostEqual(ds, 16.245399156009537, 4)143 self.assertAlmostEqual(s, 34.278990899999997, 4) 144 self.assertAlmostEqual(ds, 7.8007981835194293, 4) 144 145 145 146 r = Boxavg(x_min=.01, x_max=.015, y_min=0.01, y_max=0.015) 146 147 s, ds = r(self.data) 147 self.assertAlmostEqual(s, 0.1 1195555855955155, 4)148 self.assertAlmostEqual(ds, 0.0 11979881083557541, 4)148 self.assertAlmostEqual(s, 0.10579935462962962, 4) 149 self.assertAlmostEqual(ds, 0.024076537603455028, 4) 149 150 150 151 def test_slabX(self): … … 158 159 r.fold = False 159 160 o = r(self.data) 160 161 161 162 answer = Loader().load('slabx_testdata.txt') 162 163 for i in range(len(o.x)): … … 175 176 r.fold = False 176 177 o = r(self.data) 177 178 178 179 answer = Loader().load('slaby_testdata.txt') 179 180 for i in range(len(o.x)): … … 195 196 r.nbins_phi = 20 196 197 o = r(self.data) 197 198 198 199 answer = Loader().load('ring_testdata.txt') 199 200 for i in range(len(o.x)): … … 213 214 r.nbins_phi = 20 214 215 o = r(self.data) 215 216 216 217 answer = Loader().load('sectorphi_testdata.txt') 217 218 for i in range(len(o.x)): … … 231 232 r.nbins_phi = 20 232 233 o = r(self.data) 233 234 234 235 answer = Loader().load('sectorq_testdata.txt') 235 236 for i in range(len(o.x)):
Note: See TracChangeset
for help on using the changeset viewer.