Exemplo n.º 1
0
 def test_lookupFlut(self):        
     resArray = []
     for targetPos, targetParams in zip(self.targetPosArray, self.paramArray):
         params = flut.lookupFlut(lflut, targetPos)                        
         res = numpy.array_equal(params, targetParams)
         resArray.append(res)
     self.assertTrue(all(resArray))
Exemplo n.º 2
0
def readOperators_Flut(indDOF, flutParam=None):
    """Read the values of the operators when the FLUT is activated
    
    """
    if __OP_FLUT__ == True:
        opList = flutParam['operators']
        return opList[:, indDOF]
    else:
        comVel = flutParam['comVel']
        opList = fl.lookupFlut(influt, comVel)
        ops = opList.reshape(3, 18, order='F')
        return ops[:, indDOF]