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

Trouble running on mac terminal #2

Open
alishsan opened this issue May 3, 2018 · 5 comments
Open

Trouble running on mac terminal #2

alishsan opened this issue May 3, 2018 · 5 comments

Comments

@alishsan
Copy link

alishsan commented May 3, 2018

Hi,

I have been trying to use the code on a mac terminal, the interpreter keeps giving me error codes.

First was character encoding problems, like the French accents in your name. :) So I had to change your name to Felix from Félix. :)

Some errors had to do with typesetting, like, (1/500000) gets turned into integer 0 in my case, instead of a float.

Variable concavity is referenced before assignment in Fct_Numerov.py.

Now I am trying get the code working with harmonic potential, to no avail. The energy guessing part is not working correctly, frustratingly.

@FelixDesrochers
Copy link
Owner

Hi!

Thanks for mentioning the french accent I didn't know this could be a problem!:)

It is weird that it isn't working because I am also running the code on a mac terminal. I'm also pretty surprised that you get error of the kind "Variable concavity is referenced before assignment in Fct_Numerov.py." with seems like a fundamental problem in the code and not just a compatibility problem because I've run the code on my computer this morning (with a harmonic potential) and everything seems to be working fine.

I have looked to see if the repository was up to date and the only file that wasn't up to date was the README so the code should normally be working.

I remember that I already had problems of this kind with earlier version of the code. Are you using the actual version of the code? And just to be sure, are you using python 3 or python 2?

Also how are you entering the potential? Maybe there is some error on how the program is interpreting the input because the errors you get seem to be in the beginning of the code when the program verifies that the input is a valid potential. For an harmonic potential the input should just be "x**2".

If it still isn't working send me an example all the messages you have when you are running the code.

Félix

@alishsan
Copy link
Author

alishsan commented May 4, 2018 via email

@alishsan
Copy link
Author

alishsan commented May 4, 2018 via email

@alishsan
Copy link
Author

alishsan commented May 4, 2018 via email

@alishsan
Copy link
Author

alishsan commented May 4, 2018 via email

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

No branches or pull requests

2 participants