Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion celerite/terms.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,13 @@ def get_coeffs_jacobian(self, include_frozen=False):
class TermProduct(Term, ModelSet):

def __init__(self, k1, k2):
if k1._has_jitter or k2._has_jitter:
_has_jitter = False
if hasattr(k1, '_has_jitter') and k1._has_jitter:
_has_jitter = True
if hasattr(k2, '_has_jitter') and k2._has_jitter:
_has_jitter = True

if _has_jitter:
raise ValueError("Products are not implemented for terms with "
"jitter")
super(TermProduct, self).__init__([("k1", k1), ("k2", k2)])
Expand Down