Commit 497d2d04 authored by Kendrick, Coleman's avatar Kendrick, Coleman Committed by Peterson, Peter
Browse files

Updated ConvertQtoHKLMDHisto test for new data

parent b86072a5
......@@ -35,11 +35,15 @@ class ConvertQtoHKLMDHistoTest(unittest.TestCase):
PeaksWorkspace=mtd["peaks"])
self.assertEqual(hkl.getSpecialCoordinateSystem().name, "HKL")
self.assertEqual(mtd["peaks"].getNumberPeaks(), 12)
self.assertEqual(mtd["peaks"].getNumberPeaks(), 10)
peak = mtd["peaks"].getPeak(0)
self.assertEqual(peak.getH(), -1)
self.assertEqual(peak.getK(), 1)
self.assertEqual(peak.getL(), 4)
self.assertEqual(peak.getH(), 0.0)
self.assertEqual(peak.getK(), 0.0)
self.assertEqual(peak.getL(), 10.0)
peak = mtd["peaks"].getPeak(1)
self.assertEqual(peak.getH(), 0.0)
self.assertEqual(peak.getK(), 1.0)
self.assertEqual(peak.getL(), 9.0)
def test_qtohkl_corelli(self):
Load(Filename='CORELLI_29782.nxs', OutputWorkspace='data')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment