tracks a beam through a composite_optic, and returns an optics_trace wrapper around the marks which were created. If an error is encountered which throws an exception, the exception is printed, and the partial trace returned. This makes it very easy to find a problem optic (e.g. a grating which is diffracting a beam away from the next item, or a mirror which isn't steered right). Definition at line 1403 of file general_optics.py. 01403 : 01404 """tracks a beam through a composite_optic, and returns an optics_trace wrapper around the marks which were created. 01405 If an error is encountered which throws an exception, the exception is printed, and the partial trace returned. 01406 This makes it very easy to find a problem optic (e.g. a grating which is diffracting a beam away from the next item, 01407 or a mirror which isn't steered right). 01408 """ 01409 beam.total_drift=0.0 01410 try: 01411 optics_system.transform(beam) 01412 except: 01413 traceback.print_exc() 01414 pass #just return an incomplete trace if something goes wrong! 01415 return optics_trace(beam.marks) 01416 class phase_plate(null_optic):
|