@@ -203,24 +203,24 @@ def testPrimVarTypes ( self ) :
203
203
204
204
expected = {
205
205
'test_Bool_Scalar_constant' : IECore .BoolData ( 0 ),
206
- 'test_Double2_Array_constant' : IECore .V2dVectorData ( [IECore .V2d ( 1.1 , 1.2 ), IECore .V2d ( 2.1 , 2.2 ), IECore .V2d ( 3.1 , 3.2 )] ),
207
- 'test_Double2_Scalar_constant' : IECore .V2dData ( IECore .V2d ( 0.1 , 0.2 ) ),
208
- 'test_Double3_Array_constant' : IECore .V3dVectorData ( [IECore .V3d ( 1.1 , 1.2 , 1.3 ), IECore .V3d ( 2.1 , 2.2 , 2.3 ), IECore .V3d ( 3.1 , 3.2 , 3.3 )] ),
209
- 'test_Double3_Scalar_constant' : IECore .V3dData ( IECore .V3d ( 0.1 , 0.2 , 0.3 ) ),
206
+ 'test_Double2_Array_constant' : IECore .V2dVectorData ( [imath .V2d ( 1.1 , 1.2 ), imath .V2d ( 2.1 , 2.2 ), imath .V2d ( 3.1 , 3.2 )] ),
207
+ 'test_Double2_Scalar_constant' : IECore .V2dData ( imath .V2d ( 0.1 , 0.2 ) ),
208
+ 'test_Double3_Array_constant' : IECore .V3dVectorData ( [imath .V3d ( 1.1 , 1.2 , 1.3 ), imath .V3d ( 2.1 , 2.2 , 2.3 ), imath .V3d ( 3.1 , 3.2 , 3.3 )] ),
209
+ 'test_Double3_Scalar_constant' : IECore .V3dData ( imath .V3d ( 0.1 , 0.2 , 0.3 ) ),
210
210
'test_Double_Array_constant' : IECore .DoubleVectorData ([1.2 , 1.3 , 1.4 ]),
211
211
'test_Double_Scalar_constant' : IECore .DoubleData ( 1.1 ),
212
- 'test_Float2_Array_constant' : IECore .V2fVectorData ( [IECore .V2f ( 1.1 , 1.2 ), IECore .V2f ( 2.1 , 2.2 ), IECore .V2f ( 3.1 , 3.2 )] ),
213
- 'test_Float2_Scalar_constant' : IECore .V2fData ( IECore .V2f ( 0.1 , 0.2 ) ),
214
- 'test_Float3_Array_constant' : IECore .V3fVectorData ( [IECore .V3f ( 1.1 , 1.2 , 1.3 ), IECore .V3f ( 2.1 , 2.2 , 2.3 ), IECore .V3f ( 3.1 , 3.2 , 3.3 )] ),
215
- 'test_Float3_Scalar_constant' : IECore .V3fData ( IECore .V3f ( 0.1 , 0.2 , 0.3 ) ),
212
+ 'test_Float2_Array_constant' : IECore .V2fVectorData ( [imath .V2f ( 1.1 , 1.2 ), imath .V2f ( 2.1 , 2.2 ), imath .V2f ( 3.1 , 3.2 )] ),
213
+ 'test_Float2_Scalar_constant' : IECore .V2fData ( imath .V2f ( 0.1 , 0.2 ) ),
214
+ 'test_Float3_Array_constant' : IECore .V3fVectorData ( [imath .V3f ( 1.1 , 1.2 , 1.3 ), imath .V3f ( 2.1 , 2.2 , 2.3 ), imath .V3f ( 3.1 , 3.2 , 3.3 )] ),
215
+ 'test_Float3_Scalar_constant' : IECore .V3fData ( imath .V3f ( 0.1 , 0.2 , 0.3 ) ),
216
216
'test_Float_Array_constant' : IECore .FloatVectorData ( [0.7 , 0.8 , 0.9 ] ),
217
217
'test_Float_Scalar_constant' : IECore .FloatData ( 0.6 ),
218
218
'test_Half_Array_constant' : IECore .HalfVectorData ( [0.0999756 , 0.199951 , 0.300049 ] ),
219
219
'test_Half_Scalar_constant' : IECore .HalfData ( 0.5 ),
220
- 'test_Int2_Array_constant' : IECore .V2iVectorData ( [IECore .V2i ( 3 , 4 ), IECore .V2i ( 5 , 6 ), IECore .V2i ( 7 , 8 )] ),
221
- 'test_Int2_Scalar_constant' : IECore .V2iData ( IECore .V2i ( 1 , 2 ) ),
222
- 'test_Int3_Array_constant' : IECore .V3iVectorData ([IECore .V3i (3 , 4 , 5 ), IECore .V3i (5 , 6 , 7 ), IECore .V3i (7 , 8 , 9 )]),
223
- 'test_Int3_Scalar_constant' : IECore .V3iData (IECore .V3i (1 , 2 , 3 )),
220
+ 'test_Int2_Array_constant' : IECore .V2iVectorData ( [imath .V2i ( 3 , 4 ), imath .V2i ( 5 , 6 ), imath .V2i ( 7 , 8 )] ),
221
+ 'test_Int2_Scalar_constant' : IECore .V2iData ( imath .V2i ( 1 , 2 ) ),
222
+ 'test_Int3_Array_constant' : IECore .V3iVectorData ([imath .V3i (3 , 4 , 5 ), imath .V3i (5 , 6 , 7 ), imath .V3i (7 , 8 , 9 )]),
223
+ 'test_Int3_Scalar_constant' : IECore .V3iData (imath .V3i (1 , 2 , 3 )),
224
224
'test_Int64_Array_constant' : IECore .Int64VectorData ([9223372036854775805 , 9223372036854775806 , 9223372036854775807 ]),
225
225
'test_Int64_Scalar_constant' : IECore .Int64Data (- 9223372036854775808 ),
226
226
'test_Int_Array_constant' : IECore .IntVectorData ([0 , - 1 , - 2 ]),
@@ -235,46 +235,46 @@ def testPrimVarTypes ( self ) :
235
235
'test_UInt64_Scalar_constant' : IECore .UInt64Data (18446744073709551615 ),
236
236
'test_UInt_Array_constant' : IECore .UIntVectorData ([4294967293 , 4294967294 , 4294967295 ]),
237
237
'test_UInt_Scalar_constant' : IECore .UIntData (4294967295 ),
238
- 'test_color3d_Array_constant' : IECore .Color3dVectorData ([IECore .Color3d (1.1 , 1.2 , 1.3 ), IECore .Color3d (2.1 , 2.2 , 2.3 ), IECore .Color3d (3.1 , 3.2 , 3.3 )]),
239
- 'test_color3d_Scalar_constant' : IECore .Color3dData (IECore .Color3d (0.1 , 0.2 , 0.3 )),
240
- 'test_color3f_Array_constant' : IECore .Color3fVectorData ([IECore .Color3f (1.1 , 1.2 , 1.3 ), IECore .Color3f (2.1 , 2.2 , 2.3 ), IECore .Color3f (3.1 , 3.2 , 3.3 )]),
241
- 'test_color3f_Scalar_constant' : IECore .Color3fData (IECore .Color3f (0.1 , 0.2 , 0.3 )),
242
- 'test_color4d_Array_constant' : IECore .Color4dVectorData ([IECore .Color4d (1.1 , 1.2 , 1.3 , 1.4 ), IECore .Color4d (2.1 , 2.2 , 2.3 , 2.4 ), IECore .Color4d (3.1 , 3.2 , 3.3 , 3.4 )]),
243
- 'test_color4d_Scalar_constant' : IECore .Color4dData (IECore .Color4d (0.1 , 0.2 , 0.3 , 0.4 )),
244
- 'test_color4f_Array_constant' : IECore .Color4fVectorData ([IECore .Color4f (1.1 , 1.2 , 1.3 , 1.4 ), IECore .Color4f (2.1 , 2.2 , 2.3 , 2.4 ), IECore .Color4f (3.1 , 3.2 , 3.3 , 3.4 )]),
245
- 'test_color4f_Scalar_constant' : IECore .Color4fData (IECore .Color4f (0.1 , 0.2 , 0.3 , 0.4 )),
238
+ # 'test_color3d_Array_constant' : IECore.Color3dVectorData([IECore.Color3d(1.1, 1.2, 1.3), IECore.Color3d(2.1, 2.2, 2.3), IECore.Color3d(3.1, 3.2, 3.3)]),
239
+ # 'test_color3d_Scalar_constant' : IECore.Color3dData(IECore.Color3d(0.1, 0.2, 0.3)),
240
+ 'test_color3f_Array_constant' : IECore .Color3fVectorData ([imath .Color3f (1.1 , 1.2 , 1.3 ), imath .Color3f (2.1 , 2.2 , 2.3 ), imath .Color3f (3.1 , 3.2 , 3.3 )]),
241
+ 'test_color3f_Scalar_constant' : IECore .Color3fData (imath .Color3f (0.1 , 0.2 , 0.3 )),
242
+ # 'test_color4d_Array_constant' : IECore.Color4dVectorData([IECore.Color4d(1.1, 1.2, 1.3, 1.4), IECore.Color4d(2.1, 2.2, 2.3, 2.4), IECore.Color4d(3.1, 3.2, 3.3, 3.4)]),
243
+ # 'test_color4d_Scalar_constant' : IECore.Color4dData(IECore.Color4d(0.1, 0.2, 0.3, 0.4)),
244
+ 'test_color4f_Array_constant' : IECore .Color4fVectorData ([imath .Color4f (1.1 , 1.2 , 1.3 , 1.4 ), imath .Color4f (2.1 , 2.2 , 2.3 , 2.4 ), imath .Color4f (3.1 , 3.2 , 3.3 , 3.4 )]),
245
+ 'test_color4f_Scalar_constant' : IECore .Color4fData (imath .Color4f (0.1 , 0.2 , 0.3 , 0.4 )),
246
246
'test_matrix3d_Array_constant' : IECore .M33dVectorData (
247
247
[
248
- IECore .M33d (0 , 0 , 0 , 0 , 1 , 0 ,0 , 0 , 0 ),
249
- IECore .M33d (0 , 0 , 0 , 0 , 0 , 0 ,0 , 0 , 2 ),
250
- IECore .M33d (0 , 0 , 4 , 0 , 0 , 0 ,0 , 0 , 0 )
248
+ imath .M33d (0 , 0 , 0 , 0 , 1 , 0 ,0 , 0 , 0 ),
249
+ imath .M33d (0 , 0 , 0 , 0 , 0 , 0 ,0 , 0 , 2 ),
250
+ imath .M33d (0 , 0 , 4 , 0 , 0 , 0 ,0 , 0 , 0 )
251
251
]
252
252
),
253
- 'test_matrix3d_Scalar_constant' : IECore .M33dData (IECore .M33d (0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 )),
253
+ 'test_matrix3d_Scalar_constant' : IECore .M33dData (imath .M33d (0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 )),
254
254
'test_matrix4d_Array_constant' : IECore .M44dVectorData (
255
255
[
256
- IECore .M44d (1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 9 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ),
257
- IECore .M44d (1 , 0 , 0 , 0 , 0 , 3 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ),
258
- IECore .M44d (1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 , 0 )
256
+ imath .M44d (1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 9 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ),
257
+ imath .M44d (1 , 0 , 0 , 0 , 0 , 3 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ),
258
+ imath .M44d (1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 , 0 )
259
259
]
260
260
),
261
- 'test_matrix4d_Scalar_constant' : IECore .M44dData (IECore .M44d (1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 )),
262
- 'test_normal3d_Array_constant' : IECore .V3dVectorData ([IECore .V3d ( 1.1 , 1.2 , 1.3 ), IECore .V3d ( 2.1 , 2.2 , 2.3 ), IECore .V3d ( 3.1 , 3.2 , 3.3 )]),
263
- 'test_normal3d_Scalar_constant' : IECore .V3dData (IECore .V3d ( 0.1 , 0.2 , 0.3 )),
264
- 'test_normal3f_Array_constant' : IECore .V3fVectorData ([IECore .V3f ( 1.1 , 1.2 , 1.3 ), IECore .V3f ( 2.1 , 2.2 , 2.3 ), IECore .V3f ( 3.1 , 3.2 , 3.3 )]),
265
- 'test_normal3f_Scalar_constant' : IECore .V3fData (IECore .V3f ( 0.1 , 0.2 , 0.3 )),
266
- 'test_point3d_Array_constant' : IECore .V3dVectorData ([IECore .V3d ( 1.1 , 1.2 , 1.3 ), IECore .V3d ( 2.1 , 2.2 , 2.3 ), IECore .V3d ( 3.1 , 3.2 , 3.3 )]),
267
- 'test_point3d_Scalar_constant' : IECore .V3dData (IECore .V3d ( 0.1 , 0.2 , 0.3 )),
268
- 'test_point3f_Array_constant' : IECore .V3fVectorData ([IECore .V3f ( 1.1 , 1.2 , 1.3 ), IECore .V3f ( 2.1 , 2.2 , 2.3 ), IECore .V3f ( 3.1 , 3.2 , 3.3 )]),
269
- 'test_point3f_Scalar_constant' : IECore .V3fData (IECore .V3f (0.1 , 0.2 , 0.3 )),
270
- 'test_quatd_Array_constant' : IECore .QuatdVectorData ([IECore .Quatd (1 , 0 , 0 , 0 ), IECore .Quatd (0 , 1 , 0 , 0 ), IECore .Quatd (0 , 0 , 1 , 0 )]),
271
- 'test_quatd_Scalar_constant' : IECore .QuatdData (IECore .Quatd (0 , 0 , 0 , 1 )),
272
- 'test_quatf_Array_constant' : IECore .QuatfVectorData ([IECore .Quatf (1 , 0 , 0 , 0 ), IECore .Quatf (0 , 1 , 0 , 0 ), IECore .Quatf (0 , 0 , 1 , 0 )]),
273
- 'test_quatf_Scalar_constant' : IECore .QuatfData (IECore .Quatf (0 , 0 , 0 , 1 )),
274
- 'test_vector3d_Array_constant' : IECore .V3dVectorData ([IECore .V3d ( 1.1 , 1.2 , 1.3 ), IECore .V3d ( 2.1 , 2.2 , 2.3 ), IECore .V3d ( 3.1 , 3.2 , 3.3 )]),
275
- 'test_vector3d_Scalar_constant' : IECore .V3dData (IECore .V3d ( 0.1 , 0.2 , 0.3 )),
276
- 'test_vector3f_Array_constant' : IECore .V3fVectorData ([IECore .V3f ( 1.1 , 1.2 , 1.3 ), IECore .V3f ( 2.1 , 2.2 , 2.3 ), IECore .V3f ( 3.1 , 3.2 , 3.3 )]),
277
- 'test_vector3f_Scalar_constant' : IECore .V3fData (IECore .V3f ( 0.1 , 0.2 , 0.3 )),
261
+ 'test_matrix4d_Scalar_constant' : IECore .M44dData (imath .M44d (1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 )),
262
+ 'test_normal3d_Array_constant' : IECore .V3dVectorData ([imath .V3d ( 1.1 , 1.2 , 1.3 ), imath .V3d ( 2.1 , 2.2 , 2.3 ), imath .V3d ( 3.1 , 3.2 , 3.3 )]),
263
+ 'test_normal3d_Scalar_constant' : IECore .V3dData (imath .V3d ( 0.1 , 0.2 , 0.3 )),
264
+ 'test_normal3f_Array_constant' : IECore .V3fVectorData ([imath .V3f ( 1.1 , 1.2 , 1.3 ), imath .V3f ( 2.1 , 2.2 , 2.3 ), imath .V3f ( 3.1 , 3.2 , 3.3 )]),
265
+ 'test_normal3f_Scalar_constant' : IECore .V3fData (imath .V3f ( 0.1 , 0.2 , 0.3 )),
266
+ 'test_point3d_Array_constant' : IECore .V3dVectorData ([imath .V3d ( 1.1 , 1.2 , 1.3 ), imath .V3d ( 2.1 , 2.2 , 2.3 ), imath .V3d ( 3.1 , 3.2 , 3.3 )]),
267
+ 'test_point3d_Scalar_constant' : IECore .V3dData (imath .V3d ( 0.1 , 0.2 , 0.3 )),
268
+ 'test_point3f_Array_constant' : IECore .V3fVectorData ([imath .V3f ( 1.1 , 1.2 , 1.3 ), imath .V3f ( 2.1 , 2.2 , 2.3 ), imath .V3f ( 3.1 , 3.2 , 3.3 )]),
269
+ 'test_point3f_Scalar_constant' : IECore .V3fData (imath .V3f (0.1 , 0.2 , 0.3 )),
270
+ 'test_quatd_Array_constant' : IECore .QuatdVectorData ([imath .Quatd (1 , 0 , 0 , 0 ), imath .Quatd (0 , 1 , 0 , 0 ), imath .Quatd (0 , 0 , 1 , 0 )]),
271
+ 'test_quatd_Scalar_constant' : IECore .QuatdData (imath .Quatd (0 , 0 , 0 , 1 )),
272
+ 'test_quatf_Array_constant' : IECore .QuatfVectorData ([imath .Quatf (1 , 0 , 0 , 0 ), imath .Quatf (0 , 1 , 0 , 0 ), imath .Quatf (0 , 0 , 1 , 0 )]),
273
+ 'test_quatf_Scalar_constant' : IECore .QuatfData (imath .Quatf (0 , 0 , 0 , 1 )),
274
+ 'test_vector3d_Array_constant' : IECore .V3dVectorData ([imath .V3d ( 1.1 , 1.2 , 1.3 ), imath .V3d ( 2.1 , 2.2 , 2.3 ), imath .V3d ( 3.1 , 3.2 , 3.3 )]),
275
+ 'test_vector3d_Scalar_constant' : IECore .V3dData (imath .V3d ( 0.1 , 0.2 , 0.3 )),
276
+ 'test_vector3f_Array_constant' : IECore .V3fVectorData ([imath .V3f ( 1.1 , 1.2 , 1.3 ), imath .V3f ( 2.1 , 2.2 , 2.3 ), imath .V3f ( 3.1 , 3.2 , 3.3 )]),
277
+ 'test_vector3f_Scalar_constant' : IECore .V3fData (imath .V3f ( 0.1 , 0.2 , 0.3 )),
278
278
}
279
279
280
280
0 commit comments