( self )
| 51 | return d |
| 52 | |
| 53 | def testVector( self ) : |
| 54 | |
| 55 | v = range( 0, 100 ) |
| 56 | |
| 57 | op = IECore.DataPromoteOp() |
| 58 | |
| 59 | self.assertEqual( op( object = self.__makeVectorSourceData( IECore.IntVectorData ), targetType=int(IECore.TypeId.V3fVectorData) ), IECore.V3fVectorData( [ imath.V3f( x ) for x in v ] ) ) |
| 60 | self.assertEqual( op( object = self.__makeVectorSourceData( IECore.ShortVectorData ), targetType=int(IECore.TypeId.V3dVectorData) ), IECore.V3dVectorData( [ imath.V3d( x ) for x in v ] ) ) |
| 61 | self.assertEqual( op( object = self.__makeVectorSourceData( IECore.HalfVectorData ), targetType=int(IECore.TypeId.Color3fVectorData) ), IECore.Color3fVectorData( [ imath.Color3f( x ) for x in v ] ) ) |
| 62 | self.assertEqual( op( object = self.__makeVectorSourceData( IECore.HalfVectorData ), targetType=int(IECore.TypeId.Color3fVectorData) ), IECore.Color3fVectorData( [ imath.Color3f( x ) for x in v ] ) ) |
| 63 | self.assertEqual( op( object = self.__makeVectorSourceData( IECore.HalfVectorData ), targetType=int(IECore.TypeId.V2fVectorData) ), IECore.V2fVectorData( [ imath.V2f( x ) for x in v ] ) ) |
| 64 | |
| 65 | def testSimple( self ) : |
| 66 |
nothing calls this directly
no test coverage detected