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

Method test_plot_1d

tests/commit/vis/test__plots.py:37–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 pass
36
37 def test_plot_1d(self):
38 self._test_plot(CenteredGrid(lambda x: math.sin(x.vector[0]), input=100, bounds=Box(input=2 * math.pi)))
39
40 def test_plot_multi_1d(self):
41 self._test_plot(CenteredGrid(lambda x: math.stack({'sin': math.sin(x), 'cos': math.cos(x)}, channel('curves')), x=100, bounds=Box(x=2 * math.pi)))

Callers

nothing calls this directly

Calls 3

_test_plotMethod · 0.95
CenteredGridFunction · 0.90
BoxClass · 0.90

Tested by

no test coverage detected