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

Method test_object_no_weights

numpy/lib/tests/test_function_base.py:531–534  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

529 assert_almost_equal(a.mean(0), average(a, weights=w))
530
531 def test_object_no_weights(self):
532 a = np.array([decimal.Decimal(x) for x in range(10)])
533 m = average(a)
534 assert m == decimal.Decimal('4.5')
535
536 def test_average_class_without_dtype(self):
537 # see gh-21988

Callers

nothing calls this directly

Calls 1

averageFunction · 0.90

Tested by

no test coverage detected