Skip to content

Commit

Permalink
update failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
themattinthehatt committed Dec 10, 2024
1 parent 1fcef5d commit 30f0f26
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,16 +307,8 @@ def test_forward_pass_zero_ensemble_vars():
ensemble_vars = np.zeros((T, n_keypoints)) # Ensemble vars set to zero

# Run forward_pass
mf, Vf, S, innovations, innovation_cov = forward_pass(y, m0, S0, C, R, A, Q, ensemble_vars)

# Check if outputs are finite and correctly shaped
assert np.isfinite(mf).all(), "Non-finite values found in mf with zero ensemble_vars"
assert np.isfinite(Vf).all(), "Non-finite values found in Vf with zero ensemble_vars"
assert np.isfinite(S).all(), "Non-finite values found in S with zero ensemble_vars"
assert np.isfinite(
innovations).all(), "Non-finite values found in innovations with zero ensemble_vars"
assert np.isfinite(
innovation_cov).all(), "Non-finite values found in innovation_cov with zero ensemble_vars"
with pytest.raises(np.linalg.LinAlgError):
forward_pass(y, m0, S0, C, R, A, Q, ensemble_vars)


def test_backward_pass_basic():
Expand Down

0 comments on commit 30f0f26

Please sign in to comment.