MCPcopy
hub / github.com/numpy/numpy / test_finite_range

Method test_finite_range

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

Source from the content-addressed store, hash-verified

774 assert_(hist[1] == 0.0)
775
776 def test_finite_range(self):
777 vals = np.random.random((100, 3))
778 histogramdd(vals, range=[[0.0, 1.0], [0.25, 0.75], [0.25, 0.5]])
779 assert_raises(ValueError, histogramdd, vals,
780 range=[[0.0, 1.0], [0.25, 0.75], [0.25, np.inf]])
781 assert_raises(ValueError, histogramdd, vals,
782 range=[[0.0, 1.0], [np.nan, 0.75], [0.25, 0.5]])
783
784 def test_equal_edges(self):
785 """ 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