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
Running prysm 0.21.1 (pip install) in python 3.12.7
In the Image Simulation tutorial, I am getting the following warnings after "basis = list(polynomials.Q2d_sequence(nms, r_aber, t))":
RuntimeWarning: divide by zero encountered in scalar divide
Q0 = 1 / (2 * f0)
RuntimeWarning: divide by zero encountered in scalar divide
return G_q2d(n, m) / f_q2d(n, m)
RuntimeWarning: invalid value encountered in sqrt
return np.sqrt(F_q2d(n, m) - g_q2d(n-1, m) ** 2)
The text was updated successfully, but these errors were encountered:
Thanks for the report -- this one is a latent bug caused by a change to a scipy function's handling of negative numbers, which breaks Q-coma. If you substitute the Q2D sequence for Zernikes or any other basis, it will work fine
A not-yet-in-release notes change is the renaming of all of the polynomials.xxx_sequence functions to polynomials.xxx_seq so the naming is more consistent with _seq and _der and _der_seq for polynomials themselves as well as their derivatives
Running prysm 0.21.1 (pip install) in python 3.12.7
In the Image Simulation tutorial, I am getting the following warnings after "basis = list(polynomials.Q2d_sequence(nms, r_aber, t))":
RuntimeWarning: divide by zero encountered in scalar divide
Q0 = 1 / (2 * f0)
RuntimeWarning: divide by zero encountered in scalar divide
return G_q2d(n, m) / f_q2d(n, m)
RuntimeWarning: invalid value encountered in sqrt
return np.sqrt(F_q2d(n, m) - g_q2d(n-1, m) ** 2)
The text was updated successfully, but these errors were encountered: