Skip to content

Q2d_sequence divide by zero in Image Simulation tutorial #119

@ammichalko

Description

@ammichalko

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions