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 paraxial_spherical_mirror, and spherical_mirror. Definition at line 883 of file general_optics.py. 00883 : 00884 if not hasattr(self,"face_centered"): 00885 self.face_centered=1 00886 if not hasattr(self,"width"): 00887 self.width=0.0254 00888 if not hasattr(self,"height"): 00889 self.height=self.width 00890 if not hasattr(self,"thickness"): 00891 self.thickness=0.01 00892 base_reflector.post_init(self) 00893 def __str__(self):
|