override post_init in subclasses to do computations after the construction, usually based on extra keywords. This avoids the need for every general_optic to override the default constructor. Reimplemented from null_optic. Reimplemented in halfwave_plate, and quarterwave_plate. Definition at line 1418 of file general_optics.py. 01418 : 01419 theta=self.phase_angle*math.pi/180.0 01420 self.x_phase_shift=complex(math.cos(theta), math.sin(theta)) 01421 def local_transform(self):
|