MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_scene

Method test_scene

tests/test_dipy.py:14–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12
13class TestDipy(unittest.TestCase):
14 def test_scene(self):
15 xyz = 10 * np.random.rand(100, 3)
16 colors = np.random.rand(100, 4)
17 radii = np.random.rand(100) + 0.5
18
19 sphere_actor = actor.sphere(centers=xyz, colors=colors, radii=radii)
20
21 scene = window.Scene()
22 scene.add(sphere_actor)
23
24 self.assertEqual((0, 0), scene.GetSize())
25
26 def test_graph(self):
27 g = Graph()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected