Skip to content

Commit 0dd5594

Browse files
committed
Use a relative tolerance of 1e-2
Windows is producing slightly different results for the simulated polar view, but it is small enough for a relative tolerance of 1e-2 to work fine. The refined texture parameters come out very slightly different. There are probably just some small nuance differences between Windows and the other operating systems. Signed-off-by: Patrick Avery <[email protected]>
1 parent 60b10b8 commit 0dd5594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_wppf_texture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,4 @@ def test_wppf_texture(texture_instrument, texture_img_dict, test_data_dir):
224224
d2 = comparison_dict[root_key]
225225
assert sorted(list(d1)) == sorted(list(d2))
226226
for key in d1:
227-
assert np.allclose(d1[key], d2[key], equal_nan=True, atol=1e-2)
227+
assert np.allclose(d1[key], d2[key], equal_nan=True, rtol=1e-2)

0 commit comments

Comments
 (0)