fixed new syntax authored by joha2's avatar joha2
......@@ -46,16 +46,12 @@ components = [
tiltx_s2 = s.elements["stdelem"].surfaces["s2"].rootcoordinatesystem.tiltx
tiltx_s3 = s.elements["stdelem"].surfaces["s3"].rootcoordinatesystem.tiltx
tiltx_s3.changetype("pickup",
functionobject=(
FunctionObject("f = lambda x: -x", ["f"]),
"f"),
args=(tiltx_s2,))
tiltx_s3.to_pickup((FunctionObject("f = lambda x: -x", ["f"]), "f"), (tiltx_s2,))
s.rootcoordinatesystem.update()
# Setting tiltx of s3 as -tiltx of s2 via pickup and update coordinate systems
# afterwards.
pyrateoptics.listOptimizableVariables(s, max_line_width=75)
# Lists optimizable variables (the identifiers are keys to a dict which
# collects them all).
......
......