MCPcopy Index your code
hub / github.com/numpy/numpy / test_shape_3d

Method test_shape_3d

numpy/lib/tests/test_histograms.py:686–693  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

684 assert_array_equal(H, Z)
685
686 def test_shape_3d(self):
687 # All possible permutations for bins of different lengths in 3D.
688 bins = ((5, 4, 6), (6, 4, 5), (5, 6, 4), (4, 6, 5), (6, 5, 4),
689 (4, 5, 6))
690 r = np.random.rand(10, 3)
691 for b in bins:
692 H, edges = histogramdd(r, b)
693 assert_(H.shape == b)
694
695 def test_shape_4d(self):
696 # All possible permutations for bins of different lengths in 4D.

Callers

nothing calls this directly

Calls 2

histogramddFunction · 0.90
assert_Function · 0.90

Tested by

no test coverage detected