diff options
author | Matti Picus <matti.picus@gmail.com> | 2019-09-04 10:30:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-04 10:30:51 +0200 |
commit | 9b4fafd1397411df0faf2582239b78142722d3fb (patch) | |
tree | 96228d465b532d9bea82f17ef78682560a517364 /numpy | |
parent | e3f4c536a0014789dbd0321926b4f62c39d73719 (diff) | |
parent | 99c62dc44a70af407f266eb30b756b297c215899 (diff) | |
download | numpy-9b4fafd1397411df0faf2582239b78142722d3fb.tar.gz |
Merge pull request #14352 from eric-wieser/simplify-polyvander-int-deprecation
MAINT: Remove redundant deprecation checks
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/polynomial/polyutils.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/numpy/polynomial/polyutils.py b/numpy/polynomial/polyutils.py index a9059f522..35b24d1ab 100644 --- a/numpy/polynomial/polyutils.py +++ b/numpy/polynomial/polyutils.py @@ -426,10 +426,7 @@ def _vander2d(vander_f, x, y, deg): x, y, deg : See the ``<type>vander2d`` functions for more detail """ - degx, degy = [ - _deprecate_as_int(d, "degrees") - for d in deg - ] + degx, degy = deg x, y = np.array((x, y), copy=False) + 0.0 vx = vander_f(x, degx) @@ -449,10 +446,7 @@ def _vander3d(vander_f, x, y, z, deg): x, y, z, deg : See the ``<type>vander3d`` functions for more detail """ - degx, degy, degz = [ - _deprecate_as_int(d, "degrees") - for d in deg - ] + degx, degy, degz = deg x, y, z = np.array((x, y, z), copy=False) + 0.0 vx = vander_f(x, degx) |