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

Method testClumping

test/IECore/FileSequence.py:112–116  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

110 self.assertEqual( str( r ), "1-100x10" )
111
112 def testClumping( self ) :
113
114 r = IECore.FrameRange( 1, 32 )
115 c = r.asClumpedList( 10 )
116 self.assertEqual( c, [ [ 1, 2, 3, 4, 5, 6, 7 ,8, 9, 10 ], [ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], [ 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 ], [ 31, 32 ] ] )
117
118class testFileSequence( unittest.TestCase ) :
119

Callers

nothing calls this directly

Calls 2

FrameRangeMethod · 0.80
asClumpedListMethod · 0.45

Tested by

no test coverage detected