MCPcopy
hub / github.com/numpy/numpy / test_arr_weights_mismatch

Method test_arr_weights_mismatch

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

Source from the content-addressed store, hash-verified

103 assert_equal(h, w[1:-1])
104
105 def test_arr_weights_mismatch(self):
106 a = np.arange(10) + .5
107 w = np.arange(11) + .5
108 with assert_raises_regex(ValueError, "same shape as"):
109 h, b = histogram(a, range=[1, 9], weights=w, density=True)
110
111 def test_type(self):
112 # Check the type of the returned histogram

Callers

nothing calls this directly

Calls 2

assert_raises_regexFunction · 0.90
histogramFunction · 0.90

Tested by

no test coverage detected