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

Method testColorIO

test/IECore/RampDataTest.py:86–98  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

84 self.assertEqual( sd, sdd )
85
86 def testColorIO( self ) :
87
88 s = IECore.RampfColor3f(
89 ( ( 0, imath.Color3f(1) ), ( 1, imath.Color3f(2) ), ( 2, imath.Color3f(3) ), ( 3, imath.Color3f(4) ) ),
90 IECore.RampInterpolation.MonotoneCubic
91 )
92 sd = IECore.RampfColor3fData( s )
93
94 IECore.ObjectWriter( sd, os.path.join( "test", "IECore", "RampData.cob" ) ).write()
95
96 sdd = IECore.ObjectReader( os.path.join( "test", "IECore", "RampData.cob" ) ).read()
97
98 self.assertEqual( sd, sdd )
99
100 def testRepr( self ) :
101

Callers

nothing calls this directly

Calls 5

ObjectWriterMethod · 0.80
joinMethod · 0.80
ObjectReaderMethod · 0.80
writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected