Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

rdgraham
Copy link
Contributor

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

  • Bug fix : fixed material type not being applied to Component instances by optic_factory when the material is not explicitly required by the constructor (this had affected SphericalLens instances loaded from the component library).

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.

@ramezquitao ramezquitao merged commit fbb49d5 into cihologramas:master Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants