-
Notifications
You must be signed in to change notification settings - Fork 129
Angular momentum operators #318
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
base: master
Are you sure you want to change the base?
Conversation
if regindex_in[1:] == regindex_out[1:]: | ||
return self._radial_matrix(radial_basis, regindex_in[0], regindex_out[0], regtotal_in, regtotal_out, ell) | ||
else: | ||
raise ValueError("This should never happen") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I can suggest something: in the error message give some more information why this has happened. Otherwise, it is not so helpful... For example
ValueError(f"This should never happen, got {refined_in=}")
elif regindex_in0 == R0 and regindex_out0 == Rp: | ||
return 1j * radial_basis.xi(-1, ell+regtotal_in) * radial_basis.operator_matrix('R+', ell, regtotal_in) | ||
else: | ||
raise ValueError("This should never happen") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as before :-)
No description provided.