Skip to content

Commit 128bf6d

Browse files
authored
Change isclose check to return boolean directly
1 parent 4a7a11e commit 128bf6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

physics/fresnel_diffract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def fresnel_diffract(
7676
>>> import numpy as np
7777
>>> wf0 = np.ones((64, 64))
7878
>>> wfz = fresnel_diffract(wf0, 1, 1, 1)
79-
>>> np.isclose(np.sum(abs(wf0)**2), np.sum(abs(wfz)**2))
79+
>>> bool(np.isclose(np.sum(abs(wf0)**2), np.sum(abs(wfz)**2)))
8080
True
8181
8282
# Test that propagation distance of 0 returns the contact image

0 commit comments

Comments
 (0)