Exemple #1
0
 def test_hasMaskedBins(self):
     numBins = 10
     numHist = 11
     ws = WorkspaceCreationHelper.create2DWorkspace123WithMaskedBin(
         numHist, numBins, 0, 1)
     self.assertTrue(ws.hasMaskedBins(0))
     self.assertFalse(ws.hasMaskedBins(1))
 def test_maskedBinsIndices(self):
     numBins = 10
     numHist=11
     ws = WorkspaceCreationHelper.create2DWorkspace123WithMaskedBin(numHist, numBins, 0, 1)
     maskedBinsIndices = ws.maskedBinsIndices(0)
     self.assertEqual(1, len(maskedBinsIndices))
     for index in maskedBinsIndices:
         self.assertEqual(1, index)
 def test_hasMaskedBins(self):
     numBins = 10
     numHist=11
     ws = WorkspaceCreationHelper.create2DWorkspace123WithMaskedBin(numHist, numBins, 0, 1)
     self.assertTrue(ws.hasMaskedBins(0))
     self.assertFalse(ws.hasMaskedBins(1))