Changeset bee885e in sasview for DataLoader/test
- Timestamp:
- Sep 8, 2008 12:36:52 PM (16 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:
- 1c66bc5
- Parents:
- 060b857
- Location:
- DataLoader/test
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/test/utest_abs_reader.py
re390933 rbee885e 57 57 def test_checkdata2(self): 58 58 self.assertEqual(self.data.dy[126], 1) 59 60 class hfir_reader(unittest.TestCase): 61 62 def setUp(self): 63 self.data = Loader().load("S2-30dq.d1d") 64 65 def test_checkdata(self): 66 """ 67 Check the data content to see whether 68 it matches the specific file we loaded. 69 """ 70 self.assertEqual(self.data.filename, "S2-30dq.d1d") 71 # Q I dI dQ 72 # Point 1: 0.003014 0.003010 0.000315 0.008249 73 self.assertEqual(self.data.x[1], 0.003014) 74 self.assertEqual(self.data.y[1], 0.003010) 75 self.assertEqual(self.data.dy[1], 0.000315) 76 self.assertEqual(self.data.dx[1], 0.008249) 77 59 78 60 79 class igor_reader(unittest.TestCase):
Note: See TracChangeset
for help on using the changeset viewer.