diff options
author | Holly Corbett <holly.corbett.de@gmail.com> | 2021-05-09 18:34:44 +0200 |
---|---|---|
committer | Holly Corbett <holly.corbett.de@gmail.com> | 2021-05-10 10:05:23 +0200 |
commit | 7a9c663c2b6b1b636de56607485260e935ed6450 (patch) | |
tree | a92ae35bba57cb91e9a8c97e19d829dd9e1a6c3b | |
parent | e4ed09d58e47b1c120cb6d1f16110bf19fb711d2 (diff) | |
download | numpy-7a9c663c2b6b1b636de56607485260e935ed6450.tar.gz |
DEP: Remove PolyBase from np.polynomial.polyutils
Additionally removes associated PolyError classes. These appear to me to be unused outside this file.
-rw-r--r-- | numpy/polynomial/polyutils.py | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/numpy/polynomial/polyutils.py b/numpy/polynomial/polyutils.py index f76426a60..3b0f0a9e5 100644 --- a/numpy/polynomial/polyutils.py +++ b/numpy/polynomial/polyutils.py @@ -4,15 +4,6 @@ Utility classes and functions for the polynomial modules. This module provides: error and warning objects; a polynomial base class; and some routines used in both the `polynomial` and `chebyshev` modules. -Error objects -------------- - -.. autosummary:: - :toctree: generated/ - - PolyError base class for this sub-package's errors. - PolyDomainError raised when domains are mismatched. - Warning objects --------------- @@ -42,7 +33,7 @@ import warnings import numpy as np __all__ = [ - 'RankWarning', 'PolyError', 'PolyDomainError', 'as_series', 'trimseq', + 'RankWarning', 'as_series', 'trimseq', 'trimcoef', 'getdomain', 'mapdomain', 'mapparms'] # @@ -53,20 +44,6 @@ class RankWarning(UserWarning): """Issued by chebfit when the design matrix is rank deficient.""" pass -class PolyError(Exception): - """Base class for errors in this module.""" - pass - -class PolyDomainError(PolyError): - """Issued by the generic Poly class when two domains don't match. - - This is raised when an binary operation is passed Poly objects with - different domains. - - """ - pass - - # # Helper functions to convert inputs to 1-D arrays # |