Skip to content
Snippets Groups Projects
Commit a6086c72 authored by WHITFIELDRE email's avatar WHITFIELDRE email
Browse files

Change test to use grouping

parent 04977f82
No related merge requests found
...@@ -6,11 +6,11 @@ import unittest ...@@ -6,11 +6,11 @@ import unittest
class LoadWANDTest(unittest.TestCase): class LoadWANDTest(unittest.TestCase):
def test(self): def test(self):
ws = LoadWAND('HB2C_7000.nxs.h5') ws = LoadWAND('HB2C_7000.nxs.h5', Grouping='2x2')
self.assertTrue(ws) self.assertTrue(ws)
self.assertEquals(ws.blocksize(), 1) self.assertEquals(ws.blocksize(), 1)
self.assertEquals(ws.getNumberHistograms(), 1966080) self.assertEquals(ws.getNumberHistograms(), 1966080//4)
self.assertEquals(ws.readY(1031100), 5) self.assertEquals(ws.readY(257775), 4)
self.assertEquals(ws.run().getProtonCharge(), 907880) self.assertEquals(ws.run().getProtonCharge(), 907880)
self.assertAlmostEqual(ws.run().getGoniometer().getEulerAngles()[0], -142.6) self.assertAlmostEqual(ws.run().getGoniometer().getEulerAngles()[0], -142.6)
self.assertEquals(ws.run().getLogData('Wavelength').value, 1.488) self.assertEquals(ws.run().getLogData('Wavelength').value, 1.488)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment