MCPcopy
hub / github.com/tum-pbs/PhiFlow / test_reshape

Method test_reshape

tests/commit/field/test__point_cloud.py:10–14  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8class GridTest(TestCase):
9
10 def test_reshape(self):
11 c = PointCloud(Sphere(stack([vec(x=0, y=1)] * 50, instance('points')), radius=.1))
12 c = expand(c, batch(b=2))
13 c = rename_dims(c, 'points', 'particles')
14 assert batch(b=2) & instance(particles=50) == shape(c)

Callers

nothing calls this directly

Calls 3

PointCloudFunction · 0.90
SphereClass · 0.90
stackFunction · 0.90

Tested by

no test coverage detected