Skip to content

example fails in python 3.13.7 #111

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 !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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