Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
fix: meet new signature
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Jul 4, 2024
1 parent 832ca76 commit db1d8f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_dipy.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import numpy as np
import pytest

from dipy.core.gradients import gradient_table

from eddymotion.model.dipy import (
compute_exponential_covariance,
compute_pairwise_angles,
Expand Down Expand Up @@ -124,7 +126,9 @@
],
)
def test_compute_pairwise_angles(bvecs1, bvecs2, closest_polarity, expected):
obtained = compute_pairwise_angles(bvecs1, bvecs2, closest_polarity)
gtab1 = gradient_table([1000] * len(bvecs1), bvecs1)
gtab2 = gradient_table([1000] * len(bvecs2), bvecs2)
obtained = compute_pairwise_angles(gtab1, gtab2, closest_polarity)

assert (bvecs1.shape[-1], bvecs2.shape[-1]) == obtained.shape
assert obtained.shape == expected.shape
Expand Down

0 comments on commit db1d8f9

Please sign in to comment.