Skip to content

Commit 9caa566

Browse files
fix: Update path length and OPD image calculations in Wavefront tests to include wavelength parameter
1 parent b52cce7 commit 9caa566

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_wavefront.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test_get_path_length(self):
6767
w = wavefront.Wavefront(optic)
6868
w._trace_chief_ray((0, 0), 0.55)
6969
xc, yc, zc, R = w._get_reference_sphere(pupil_z=100)
70-
path_length = w._get_path_length(xc, yc, zc, R)
70+
path_length = w._get_path_length(xc, yc, zc, R, 0.55)
7171
assert np.allclose(path_length, np.array([34.84418309]))
7272

7373
def test_correct_tilt(self):
@@ -86,7 +86,7 @@ def test_opd_image_to_xp(self):
8686
w = wavefront.Wavefront(optic)
8787
w._trace_chief_ray((0, 0), 0.55)
8888
xc, yc, zc, R = w._get_reference_sphere(pupil_z=100)
89-
t = w._opd_image_to_xp(xc, yc, zc, R)
89+
t = w._opd_image_to_xp(xc, yc, zc, R, 0.55)
9090
assert np.allclose(t, np.array([39.454938]))
9191

9292

0 commit comments

Comments
 (0)