Changeset adbb821 in sasview
- Timestamp:
- Dec 22, 2009 7:55:47 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:
- 112f54c
- Parents:
- 918fcb1
- Location:
- DataLoader/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/test/cansas1d_units.xml
re390933 radbb821 11 11 <SASdata> 12 12 <Idata> 13 <Q unit="1/nm">0. 002</Q>14 <I unit="1/nm"> 1</I>15 <Idev unit="1/nm">.00 3</Idev>16 <Qdev unit="1/nm">0. 001</Qdev>13 <Q unit="1/nm">0.2</Q> 14 <I unit="1/nm">0.0001</I> 15 <Idev unit="1/nm">.0000003</Idev> 16 <Qdev unit="1/nm">0.1</Qdev> 17 17 <Qmean unit="1/A"><!-- Qmean is optional --></Qmean> 18 18 <Shadowfactor><!-- Shadowfactor is optional --></Shadowfactor> 19 19 </Idata> 20 20 <Idata> 21 <Q unit="1/nm">0. 003</Q>22 <I unit="1/nm"> 1.001</I>23 <Idev unit="1/nm">.00 4</Idev>24 <Qdev unit="1/nm">0. 002</Qdev>21 <Q unit="1/nm">0.3</Q> 22 <I unit="1/nm">0.0001001</I> 23 <Idev unit="1/nm">.0000004</Idev> 24 <Qdev unit="1/nm">0.2</Qdev> 25 25 <Qmean unit="1/A"><!-- Qmean is optional --></Qmean> 26 26 <Shadowfactor><!-- Shadowfactor is optional --></Shadowfactor> -
DataLoader/test/utest_abs_reader.py
rfe78c7b radbb821 182 182 self.assertEqual(self.data.x_unit, '1/A') 183 183 self.assertEqual(self.data.y_unit, '1/cm') 184 self.assert Equal(self.data.x[0], 0.02)185 self.assert Equal(self.data.y[0], 1000)186 self.assert Equal(self.data.dx[0], 0.01)187 self.assert Equal(self.data.dy[0], 3)188 self.assert Equal(self.data.x[1], 0.03)189 self.assertAlmostEqual s(self.data.y[1], 1001.0)190 self.assert Equal(self.data.dx[1], 0.02)191 self.assert Equal(self.data.dy[1], 4)184 self.assertAlmostEqual(self.data.x[0], 0.02, 6) 185 self.assertAlmostEqual(self.data.y[0], 1000, 6) 186 self.assertAlmostEqual(self.data.dx[0], 0.01, 6) 187 self.assertAlmostEqual(self.data.dy[0], 3, 6) 188 self.assertAlmostEqual(self.data.x[1], 0.03, 6) 189 self.assertAlmostEqual(self.data.y[1], 1001.0) 190 self.assertAlmostEqual(self.data.dx[1], 0.02, 6) 191 self.assertAlmostEqual(self.data.dy[1], 4, 6) 192 192 self.assertEqual(self.data.run_name['1234'], 'run name') 193 193 self.assertEqual(self.data.title, "Test title") -
DataLoader/test/utest_ascii.py
r5f2d3c78 radbb821 24 24 self.assertEqual(f.x[0],0.002618) 25 25 self.assertEqual(f.x[9],0.0497) 26 self.assertEqual(f.x_unit, '1/A') 27 self.assertEqual(f.y_unit, '1/cm') 26 28 27 29 self.assertEqual(f.meta_data['loader'],"ASCII")
Note: See TracChangeset
for help on using the changeset viewer.