Skip to content

Commit 335a7de

Browse files
committed
update sync3n_cupy test
1 parent ccc3137 commit 335a7de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_commonline_sync3n_cupy.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ def test_stv_host_vs_cupy(cl3n_fixture, rijs_fixture):
8989
assert cl3n_fixture.J_weighting is False
9090

9191
# Execute CUPY
92-
new_vec_cp = cl3n_fixture._signs_times_v_cupy(rijs_fixture, vec)
92+
new_vec_cp = cl3n_fixture.J_sync._signs_times_v_cupy(rijs_fixture, vec)
9393

9494
# Execute host
95-
new_vec_h = cl3n_fixture._signs_times_v_host(rijs_fixture, vec)
95+
new_vec_h = cl3n_fixture.J_sync._signs_times_v_host(rijs_fixture, vec)
9696

9797
# Compare host to cupy calls
9898
np.testing.assert_allclose(new_vec_cp, new_vec_h)
@@ -111,10 +111,10 @@ def test_stvJwt_host_vs_cupy(cl3n_fixture, rijs_fixture):
111111
cl3n_fixture.J_weighting = True
112112

113113
# Execute CUPY
114-
new_vec_cp = cl3n_fixture._signs_times_v_cupy(rijs_fixture, vec)
114+
new_vec_cp = cl3n_fixture.J_sync._signs_times_v_cupy(rijs_fixture, vec)
115115

116116
# Execute host
117-
new_vec_h = cl3n_fixture._signs_times_v_host(rijs_fixture, vec)
117+
new_vec_h = cl3n_fixture.J_sync._signs_times_v_host(rijs_fixture, vec)
118118

119119
# Compare host to cupy calls
120120
rtol = 1e-7 # np testing default
@@ -226,7 +226,7 @@ def test_signs_times_v_mex(matlab_ref_fixture):
226226
# Equivalent matlab
227227
# vec=ones([1,np]);
228228

229-
new_vec = cl3n._signs_times_v(Rijs, vec)
229+
new_vec = cl3n.J_sync._signs_times_v(Rijs, vec)
230230

231231
ref_vec = [0, -2, -2, 0, -6, -4, -2, -2, -2, 0]
232232

0 commit comments

Comments
 (0)