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

Method test_list_scenes

tests/commit/field/test__scene.py:77–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 pass
76
77 def test_list_scenes(self):
78 scene = Scene.create(DIR, count=2)
79 scenes = Scene.list(DIR, include_other=True)
80 scenes_ = Scene.list(DIR, include_other=False)
81 self.assertEqual(scenes, scenes_)
82 self.assertGreaterEqual(len(scenes), 2)
83 scene_ = Scene.list(DIR, dim=batch('batch'))
84 self.assertGreaterEqual(scene_.shape.volume, 2)
85 scene.remove()
86
87 def test_write_read(self):
88 smoke = CenteredGrid(1, extrapolation.BOUNDARY, x=32, y=32)

Callers

nothing calls this directly

Calls 3

createMethod · 0.80
listMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected