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

Add checks to prevent certain non-physical inputs being entered by user #62

Open
ltmsyvag opened this issue Apr 15, 2021 · 0 comments
Open

Comments

@ltmsyvag
Copy link

Rubidium().getEnergy(n=5, l=0, j=-1/2) (as an example) returns an energy when it shouldn't (I guess?), since total angular momentum quantum number j is negative and probably it cannot be negative. From the function definition it seems when j == -1/2, ARC does not grab recorded experimental energy data, but rather just calculate energy using Rydberg equation. Seems there can be a positivity check for j in the case of S state?

@nikolasibalic nikolasibalic changed the title Rubidium().getEnergy(n=5, l=0, j=-1/2) returns an energy Add checks to prevent certain non-physical inputs if entered by user Apr 16, 2021
@nikolasibalic nikolasibalic changed the title Add checks to prevent certain non-physical inputs if entered by user Add checks to prevent certain non-physical inputs being entered by user Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants