You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing LightPipes and running LPtest(), the test sometimes fails while the installation is correct. In the test an optical field is initialized, propagated over a distance using the Fresnel propagator and the resulting intensity is summed and compared with a predefined value. The comparison is of the form a==b, which means that the two need to be equal up to and including the last digit. Depending on python version, machine precision, etc., the two values may actually differ slightly (e.g in the last or last two digits). A better test would be to check that abs(a-b) is less than a threshold value to determine if the installation is correct.
Furthermore, the text printed after test is successful differs from the text mentioned in the manual (at least in version 2.0.9)
The text was updated successfully, but these errors were encountered:
After installing LightPipes and running LPtest(), the test sometimes fails while the installation is correct. In the test an optical field is initialized, propagated over a distance using the Fresnel propagator and the resulting intensity is summed and compared with a predefined value. The comparison is of the form a==b, which means that the two need to be equal up to and including the last digit. Depending on python version, machine precision, etc., the two values may actually differ slightly (e.g in the last or last two digits). A better test would be to check that abs(a-b) is less than a threshold value to determine if the installation is correct.
Furthermore, the text printed after test is successful differs from the text mentioned in the manual (at least in version 2.0.9)
The text was updated successfully, but these errors were encountered: