Changeset d00f8ff in sasview for DataLoader/test
- Timestamp:
- Oct 1, 2008 10:54:19 AM (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:
- cfbe9b5
- Parents:
- 57f3320
- Location:
- DataLoader/test
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/test/utest_abs_reader.py
r76e2369 rd00f8ff 326 326 327 327 328 328 def test_slits(self): 329 """ 330 Check slit data 331 """ 332 filename = "cansas1d_slit.xml" 333 self.data = Loader().load(filename) 334 self.assertEqual(self.data.filename, filename) 335 self.assertEqual(self.data.run[0], "1234") 336 337 # Data 338 self.assertEqual(len(self.data.x), 2) 339 self.assertEqual(self.data.x_unit, '1/A') 340 self.assertEqual(self.data.y_unit, '1/cm') 341 self.assertEqual(self.data.x[0], 0.02) 342 self.assertEqual(self.data.y[0], 1000) 343 self.assertEqual(self.data.dxl[0], 0.005) 344 self.assertEqual(self.data.dxw[0], 0.001) 345 self.assertEqual(self.data.dy[0], 3) 346 self.assertEqual(self.data.x[1], 0.03) 347 self.assertAlmostEquals(self.data.y[1], 1001.0) 348 self.assertEqual(self.data.dx[1], 0.0) 349 self.assertEqual(self.data.dxl[1], 0.005) 350 self.assertEqual(self.data.dxw[1], 0.001) 351 self.assertEqual(self.data.dy[1], 4) 352 self.assertEqual(self.data.run_name['1234'], 'run name') 353 self.assertEqual(self.data.title, "Test title") 354 329 355 330 356
Note: See TracChangeset
for help on using the changeset viewer.