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 general_optic. Reimplemented in phase_plate, halfwave_plate, quarterwave_plate, and faraday_rotator. Definition at line 914 of file general_optics.py. 00914 : 00915 if not hasattr(self,"width"): 00916 self.width=0.0254 00917 if not hasattr(self,"thickness"): 00918 self.thickness=0.01 00919 def abcd_transform(self, vec):
|