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

Adding Sellmeier.from_dispersion() #194

Merged
merged 1 commit into from
Feb 2, 2022
Merged

Adding Sellmeier.from_dispersion() #194

merged 1 commit into from
Feb 2, 2022

Conversation

momchil-flex
Copy link
Collaborator

No description provided.


if dn_dwvl > 0:
raise ValidationError("Dispersion ``dn_dwvl`` must be smaller than zero.")
if n < 1:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

based on description of the error, should this be n <= 1?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

applies to one above too

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, technically the conditions are correct and the descriptions should change, but I'm gonna require dn_dwvl to be strictly smaller than zero because it could trigger an error if it's exactly zero due to numerical precision. I'll update.

@tylerflex tylerflex merged commit 4caa880 into develop Feb 2, 2022
@momchil-flex momchil-flex deleted the momchil/dndlam branch February 3, 2022 21:35
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.

2 participants