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

Method testCanGetGridFromObject

test/IECoreVDB/VDBObjectTest.py:158–163  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

156 self.assertEqual( vdbObject.hash(), vdbObjectCopy.hash() )
157
158 def testCanGetGridFromObject( self ) :
159 sourcePath = os.path.join( self.dataDir, "smoke.vdb" )
160 vdbObject = IECoreVDB.VDBObject( sourcePath )
161
162 grid = vdbObject.findGrid( "density" )
163 self.assertEqual(grid.leafCount(), 3117)
164
165 def testIfDifferentFromFile( self ) :
166 sourcePath = os.path.join( self.dataDir, "smoke.vdb" )

Callers

nothing calls this directly

Calls 3

findGridMethod · 0.95
joinMethod · 0.80
VDBObjectMethod · 0.80

Tested by

no test coverage detected