Skip to content

Commit 8433ff6

Browse files
refactor: changed boolean logic
1 parent 134d5c9 commit 8433ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc_extras/inference/inla.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def fit_INLA(
157157
_, _, _, tau = x.owner.inputs
158158

159159
# Latent field should use precison rather than covariance
160-
if not tau.owner or tau.owner.op != matrix_inverse:
160+
if not (tau.owner and tau.owner.op == matrix_inverse):
161161
raise ValueError(
162162
f"Latent field {x} is not in precision matrix form. Use MvNormal(tau=Q) instead."
163163
)

0 commit comments

Comments
 (0)