Definition at line 227 of file abcd_optics.py. 00227 : 00228 thestr="\n\n***Starting beam trace***\n" 00229 for (z,info) in self.trace: 00230 thestr += ("%10.1f " % z) 00231 if type(info)==type(" "): 00232 thestr+= info 00233 else: 00234 w, r = info.w, info.r 00235 if r is Infinity: 00236 rstr="r="+r 00237 elif abs(r)>10000.0: 00238 rstr=("r=%10.2e" %r) 00239 else: 00240 rstr="r=%10.1f" % r 00241 thestr += ("w=%6.2f "%w) + rstr 00242 thestr += "\n" 00243 return thestr return thestr
|