-
Notifications
You must be signed in to change notification settings - Fork 72
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
Issue with Look-up of Wigner6J Table #42
Comments
Hi @pbanner Thank you for issue submission. I have run from arc import *
print(wigner.Wigner6j(0.5,0.5,1,2,1,1.5)) and have got
I get same when I run Line 215 should not be the problem since there is a condition before in line 211 abs(roundPy2(j1)-j1) < 0.1 that should evaluate to False for your test case, forcing module not to use pre calculated look-up table. So I am bit confused why you see the error. @pbanner could you please let me know which Python you are using, on which OS, and share complete error trace that Python returns? Also could you please confirm that you are running latest ARC. |
Hi, Nikola,
Thanks for looking into this. I just upgraded ARC, and it now works fine.
For some reason I didn't think to do that. I'll tell my lab mates to do the
same; a couple of them tried the calculation and got the same error message.
Thanks again,
-Patrick
…On Mon, Mar 30, 2020 at 5:41 PM Nikola Šibalić ***@***.***> wrote:
Hi @pbanner <https://github.com/pbanner>
Thank you for issue submission. I have run
from arc import *print(wigner.Wigner6j(0.5,0.5,1,2,1,1.5))
and have got
0.28867513459481287
I get same when I run wigner.Wigner6j(1/2,1/2,1,2,1,3/2) (note that this
is same only on Python 3.*, in Python 2 division is assumed to be integer
and this would render to wigner.Wigner6j(0,0,1,2,1,1) throwing error that
symbol is not triangular).
Line 215 should not be the problem since for your test case there is a
condition before in line 211
abs(roundPy2(j1)-j1) < 0.1)
that should evaluate to false, forcing module not to used precalculated
look-up table. So I am bit confused why you see the error.
@pbanner <https://github.com/pbanner> could you please let me know which
Python you are using, on which OS, and share complete error trace that
Python returns? Also could you please confirm that you are running latest
ARC.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMYQ6SDVHEVFY7M46QW6Z5TRKEGYZANCNFSM4LW45UUQ>
.
|
Hi Patrick, Great, thank you! And don't hesitate to submit issue if you encounter any problems of even if you have question. With complicated programs like this, input from users is irreplaceable for tracking down all edge cases. Best wishes, |
The calculation of 6-J symbols in the wigner module includes a look-up table that appears to make assumptions that certain inputs are integers, though they need not be. Thus many symbols, such as wigner.Wigner6j(1/2,1/2,1,2,1,3/2), will throw errors as those inputs are not integers. Specifically, line 215,
throws the error.
The text was updated successfully, but these errors were encountered: