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

Function test_mapparms

numpy/polynomial/tests/test_classes.py:554–563  ·  view source on GitHub ↗
(Poly)

Source from the content-addressed store, hash-verified

552
553
554def test_mapparms(Poly):
555 # check with defaults. Should be identity.
556 d = Poly.domain
557 w = Poly.window
558 p = Poly([1], domain=d, window=w)
559 assert_almost_equal([0, 1], p.mapparms())
560 #
561 w = 2*d + 1
562 p = Poly([1], domain=d, window=w)
563 assert_almost_equal([1, 2], p.mapparms())
564
565
566def test_ufunc_override(Poly):

Callers

nothing calls this directly

Calls 3

assert_almost_equalFunction · 0.90
PolyFunction · 0.85
mapparmsMethod · 0.80

Tested by

no test coverage detected