-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
691 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
r"""Collection of polynomial expansion constructors.""" | ||
import logging | ||
from functools import wraps | ||
|
||
from .chebyshev import chebyshev_1, chebyshev_2 | ||
from .cholesky import cholesky | ||
from .frontend import generate_expansion | ||
from .gegenbauer import gegenbauer | ||
from .gram_schmidt import gram_schmidt | ||
from .hermite import hermite | ||
from .jacobi import jacobi | ||
from .stieltjes import stieltjes | ||
from .lagrange import lagrange | ||
from .laguerre import laguerre | ||
from .legendre import legendre | ||
|
||
__all__ = ["generate_expansion"] | ||
|
||
|
||
def expansion_deprecation_warning(name, func): | ||
|
||
@wraps(func) | ||
def wrapped(*args, **kwargs): | ||
"""Function wrapper adds warnings.""" | ||
logger = logging.getLogger(__name__) | ||
logger.warning("chaospy.%s name is to be deprecated; " | ||
"Use chaospy.expansion.%s instead", | ||
name, func.__name__) | ||
return func(*args, **kwargs) | ||
|
||
globals()[name] = wrapped | ||
__all__.append(name) | ||
|
||
|
||
expansion_deprecation_warning("orth_ttr", stieltjes) | ||
expansion_deprecation_warning("orth_chol", cholesky) | ||
expansion_deprecation_warning("orth_gs", gram_schmidt) | ||
expansion_deprecation_warning("lagrange_polynomial", lagrange) |
Oops, something went wrong.