-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a theano shim to point to pymc3 and emit deprecation warning (#92
) * Addding a theano shim to point to pymc3 and emit deprecation warning * Fixing imports in shim * Update __init__.py
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
__all__ = ["terms", "GaussianProcess"] | ||
|
||
import warnings | ||
|
||
warnings.warn( | ||
"The `celerite2.theano` submodule is deprecated; " | ||
"use `celerite2.pymc3` instead", | ||
DeprecationWarning, | ||
) | ||
|
||
from celerite2.pymc3.celerite2 import GaussianProcess | ||
from celerite2.theano import terms |
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,25 @@ | ||
__all__ = [ | ||
"Term", | ||
"TermSum", | ||
"TermProduct", | ||
"TermDiff", | ||
"TermConvolution", | ||
"RealTerm", | ||
"ComplexTerm", | ||
"SHOTerm", | ||
"Matern32Term", | ||
"RotationTerm", | ||
] | ||
|
||
from celerite2.pymc3.terms import ( | ||
ComplexTerm, | ||
Matern32Term, | ||
RealTerm, | ||
RotationTerm, | ||
SHOTerm, | ||
Term, | ||
TermConvolution, | ||
TermDiff, | ||
TermProduct, | ||
TermSum, | ||
) |
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