Skip to content

example fails in python 3.13.7 #111

@jsandhu-jpl

Description

@jsandhu-jpl

EXAMPLE_try_running_FALCO.py fails in python 3.13.7. The problem is with the the exec() command in propcustom_zernikes:

for i in range(1, maxtc+1):
tcs = str(i).strip()
cmd = "cos" + tcs + "t = np.cos(it)"
exec(cmd)
cmd = "sin" + tcs + "t = np.sin(i
t)"
exec(cmd)

The exec() returns without creating the variables cos1t and sin1t.
exec() does return successfully if used in the PyCharm console !

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