MCPcopy Create free account
hub / github.com/ImageEngine/cortex / test

Method test

test/IECore/DataInterleaveOpTest.py:42–70  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

40class DataInterleaveOpTest( unittest.TestCase ) :
41
42 def test( self ) :
43
44 i = IECore.ObjectVector(
45
46 [
47 IECore.IntVectorData( [ 1, 2, 3 ] ),
48 IECore.IntVectorData( [ 11, 12, 13 ] ),
49 IECore.IntVectorData( [ 21, 22, 23 ] ),
50 ]
51
52 )
53
54 o = IECore.DataInterleaveOp()(
55
56 data = i,
57 targetType = IECore.IntVectorData.staticTypeId()
58
59 )
60
61 self.assertEqual(
62
63 o,
64 IECore.IntVectorData( [
65 1, 11, 21,
66 2, 12, 22,
67 3, 13, 23,
68 ] )
69
70 )
71
72 def testDataScaling( self ) :
73

Callers

nothing calls this directly

Calls 3

ObjectVectorMethod · 0.80
DataInterleaveOpMethod · 0.80
staticTypeIdMethod · 0.80

Tested by

no test coverage detected