cihologramas / pyoptools

Python tools for optical design
GNU General Public License v3.0
137 stars 46 forks source link

Avoid division by zero #119

Closed ederag closed 2 years ago

ederag commented 2 years ago

This avoids the "division by zero" warning when one face of a spherical lens actually has zero curvature. Together with #116 that was merged, this fixes #94 (the warning lead to use unreasonably small curvatures instead of plain 0).