Changeset a3f8d58 in sasview for DataLoader/test
- Timestamp:
- Jul 18, 2009 4:40:57 PM (15 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:
- 72c7d31
- Parents:
- ba95543
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/test/utest_smearing.py
r4fe4394 ra3f8d58 56 56 answer = [ 9.666, 9.056, 8.329, 7.494, 6.642, 5.721, 4.774, 3.824, 2.871, 2. ] 57 57 for i in range(len(input)): 58 self.assertAlmostEqual(answer[i], output[i], 5)58 self.assertAlmostEqual(answer[i], output[i], 2) 59 59 60 60 def test_q(self): … … 68 68 output = s(input) 69 69 for i in range(len(input)): 70 self.assert Equals(input[i], output[i])70 self.assertAlmostEquals(input[i], output[i], 5) 71 71 72 72 def test_q2(self):
Note: See TracChangeset
for help on using the changeset viewer.