Skip to content

Commit

Permalink
Resolve issue that broke tests for returning var in spacetime
Browse files Browse the repository at this point in the history
  • Loading branch information
asolin committed Nov 21, 2022
1 parent af3f625 commit 307d9e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bayesnewton/basemodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ def predict(self, X=None, R=None, pseudo_lik_params=None):

# if np.squeeze(test_var).ndim > 2: # deal with spatio-temporal case (discard spatial covariance)
if self.spatio_temporal: # deal with spatio-temporal case (discard spatial covariance)
test_var = diag(np.squeeze(test_var))
test_var = diag(test_var)
return np.squeeze(test_mean), np.squeeze(test_var)

def filter_energy(self):
Expand Down

0 comments on commit 307d9e0

Please sign in to comment.