- Timestamp:
- Sep 7, 2017 12:04:43 PM (7 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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 7582df3
- Parents:
- b54440d
- Location:
- test/sasdataloader/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sasdataloader/test/utest_abs_reader.py
r17e257b5 ra78a02f 48 48 self.assertEqual(self.data.detector[0].beam_center.y, center_y) 49 49 50 self.assertEqual(self.data.y_unit, ' 1/cm')50 self.assertEqual(self.data.y_unit, 'cm^{-1}') 51 51 self.assertEqual(self.data.x[0], 0.002618) 52 52 self.assertEqual(self.data.x[1], 0.007854) … … 146 146 # Data 147 147 self.assertEqual(len(self.data.x), 2) 148 self.assertEqual(self.data.x_unit, ' 1/A')149 self.assertEqual(self.data.y_unit, ' 1/cm')148 self.assertEqual(self.data.x_unit, 'A^{-1}') 149 self.assertEqual(self.data.y_unit, 'cm^{-1}') 150 150 self.assertAlmostEqual(self.data.x[0], 0.02, 6) 151 151 self.assertAlmostEqual(self.data.y[0], 1000, 6) … … 324 324 # Data 325 325 self.assertEqual(len(self.data.x), 2) 326 self.assertEqual(self.data.x_unit, ' 1/A')327 self.assertEqual(self.data.y_unit, ' 1/cm')326 self.assertEqual(self.data.x_unit, 'A^{-1}') 327 self.assertEqual(self.data.y_unit, 'cm^{-1}') 328 328 self.assertEqual(self.data.x[0], 0.02) 329 329 self.assertEqual(self.data.y[0], 1000) -
test/sasdataloader/test/utest_ascii.py
r17e257b5 ra78a02f 32 32 self.assertEqual(self.f1.x[0],0.002618) 33 33 self.assertEqual(self.f1.x[9],0.0497) 34 self.assertTrue(self.f1.x_unit == ' 1/A' or self.f1.x_unit == 'A^{-1}')35 self.assertTrue(self.f1.y_unit == ' 1/cm' or self.f1.y_unit == 'cm^{-1}')34 self.assertTrue(self.f1.x_unit == 'A^{-1}') 35 self.assertTrue(self.f1.y_unit == 'cm^{-1}') 36 36 37 37 self.assertEqual(self.f1.meta_data['loader'],"ASCII") -
test/sasdataloader/test/utest_sesans.py
r17e257b5 ra78a02f 65 65 "sesans_examples/no_spin_echo_unit.ses") 66 66 67 def test_sesans_no_version(self):68 """69 Confirm that sesans files with no file format version raise an appropriate error70 """71 # Warning message sent to logger for files not found.72 pass73 74 67 def test_sesans_future_version(self): 75 68 """
Note: See TracChangeset
for help on using the changeset viewer.