There was an error while loading. Please reload this page.
1 parent 4a7a11e commit 128bf6dCopy full SHA for 128bf6d
1 file changed
physics/fresnel_diffract.py
@@ -76,7 +76,7 @@ def fresnel_diffract(
76
>>> import numpy as np
77
>>> wf0 = np.ones((64, 64))
78
>>> wfz = fresnel_diffract(wf0, 1, 1, 1)
79
- >>> np.isclose(np.sum(abs(wf0)**2), np.sum(abs(wfz)**2))
+ >>> bool(np.isclose(np.sum(abs(wf0)**2), np.sum(abs(wfz)**2)))
80
True
81
82
# Test that propagation distance of 0 returns the contact image
0 commit comments