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

6j-Symbol is not triangular in LevelPlot.drawSpectra() #45

Closed
zzpwahaha opened this issue May 13, 2020 · 5 comments
Closed

6j-Symbol is not triangular in LevelPlot.drawSpectra() #45

zzpwahaha opened this issue May 13, 2020 · 5 comments
Assignees
Labels

Comments

@zzpwahaha
Copy link

zzpwahaha commented May 13, 2020

atom = Rubidium87()
level = LevelPlot(atom)
level.makeLevels(4,6,0,3)
level.drawSpectra()
level.showPlot()

maybe change to 'return 0 if is not trangular' in Wiger6J

@nikolasibalic
Copy link
Owner

Let me check this one, this looks like some bug.

@nikolasibalic nikolasibalic self-assigned this May 13, 2020
@nikolasibalic
Copy link
Owner

nikolasibalic commented May 13, 2020

@zzpwahaha thanks for this,

It's not bug - just the call to get level diagram should be:

atom = Rubidium87()
level = LevelPlot(atom)
level.makeLevels(5,6,0,3)
level.drawLevels()
level.showPlot()

Note that you should call drawLevels instead of drawSpectra (that function is not officially supported at the moment - it remains from some past developments). In general program stops if Wigner6J is not triangular because that usually means some entered parameters are not correct. But in this case this is probably because drawSpectra is old and should not be called (it's not actually visible in documentation).

Also note that grund state of rubidium corresponds to n=5, so there is probably no reason to try to plot from n=4 (first argument of makeLevels).

@zzpwahaha
Copy link
Author

Thanks for the reply. I see.
Btw, the reason I start from 4 is to include to 4D state as it is energetically higher than 5S_{1/2}
And I thinks that is supported in plotLevels?

@nikolasibalic
Copy link
Owner

nikolasibalic commented May 13, 2020

Ah yes, you are right. It is supported. I forgot for the moment these, but luckily ARC didn't. :)
Yes, starting with 4 you will get correct requested plot with 4D states included.

@zzpwahaha
Copy link
Author

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants