MCPcopy Create free account
hub / github.com/numpy/numpy / test_finite_range

Method test_finite_range

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

Source from the content-addressed store, hash-verified

735 assert_(hist[1] == 0.0)
736
737 def test_finite_range(self):
738 vals = np.random.random((100, 3))
739 histogramdd(vals, range=[[0.0, 1.0], [0.25, 0.75], [0.25, 0.5]])
740 assert_raises(ValueError, histogramdd, vals,
741 range=[[0.0, 1.0], [0.25, 0.75], [0.25, np.inf]])
742 assert_raises(ValueError, histogramdd, vals,
743 range=[[0.0, 1.0], [np.nan, 0.75], [0.25, 0.5]])
744
745 def test_equal_edges(self):
746 """ Test that adjacent entries in an edge array can be equal """

Callers

nothing calls this directly

Calls 3

histogramddFunction · 0.90
assert_raisesFunction · 0.90
randomMethod · 0.80

Tested by

no test coverage detected