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

Method testClumping

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

Source from the content-addressed store, hash-verified

192 self.assertEqual( m, [ ("seq.0003.tif", "seq.3.tif" ), ("seq.0005.tif", "seq.5.tif"), ("seq.0007.tif", "seq.7.tif") ] )
193
194 def testClumping( self ) :
195
196 s = IECore.FileSequence( "a.#.tif", IECore.FrameRange( 1, 5 ) )
197 self.assertEqual( s.clumpedFileNames( 2 ), [ ["a.1.tif", "a.2.tif"], ["a.3.tif", "a.4.tif"], ["a.5.tif"] ] )
198
199 def testFileNameForFrame( self ) :
200

Callers

nothing calls this directly

Calls 3

clumpedFileNamesMethod · 0.95
FileSequenceMethod · 0.80
FrameRangeMethod · 0.80

Tested by

no test coverage detected