cihologramas / pyoptools

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

Bug fix : optic_factory not applying material if no material argument in the Componet class #140

Closed rdgraham closed 1 year ago

rdgraham commented 1 year ago

[this was in aspheres_library PR, moved to separate PR since not related.]

I think strictly the better design would be to not have the material argument in Component constructor and then fix SphericalLens (and any others) to explicitly take the material keyword argument. After all, not all possible components have a relevant material (e.g. optic stops).

I wasn't sure if that would have some other consequences so just fixed it this way for now.