Skip to content

Commit

Permalink
correct test
Browse files Browse the repository at this point in the history
  • Loading branch information
qbarthelemy committed Mar 20, 2024
1 parent 316d930 commit fec71a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_utils_distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ def test_qdistance_logeuclid_to_convex_hull(optimizer, get_covmats):
covmats = get_covmats(n_trials, n_channels)

dist = qdistance_logeuclid_to_convex_hull(covmats, covmats[0], optimizer=optimizer)
assert np.isclose(dist, 0)
assert dist == pytest.approx(0)

covmean = mean_logeuclid(covmats)
dist = qdistance_logeuclid_to_convex_hull(covmats, covmean, optimizer=optimizer)
assert np.isclose(dist, 0)
assert dist == pytest.approx(0)


@pytest.mark.parametrize("optimizer", [ClassicalOptimizer(), NaiveQAOAOptimizer()])
Expand Down

0 comments on commit fec71a1

Please sign in to comment.