ChristopherMayes / lume-astra

Python wrapper for Astra (A Space Charge Tracking Algorithm, DESY) for eventual use in LUME https://christophermayes.github.io/lume-astra/
https://christophermayes.github.io/lume-astra/
Apache License 2.0
14 stars 9 forks source link

Error message on windows #21

Closed polarcos closed 1 year ago

polarcos commented 1 year ago

Dear All, I'm trying to run lume-astra using a astra.in file. I put the Astra file and astra.in file in the same path. But everytime I run A.run or run_astra function I get an error message:

AssertionError: ERROR: Command does not exist:c:\Users\Polar\Desktop\lume-astra\$ASTRA_BIN

I presume it has to do with the $ASTRA_BIN setting but I don't know how to set it.

Thanks for your help!

ChristopherMayes commented 1 year ago

You have to set environmental variables to point to your executables. See: https://christophermayes.github.io/lume-astra/examples/install_astra/

polarcos commented 1 year ago

I set an environment variable named ASTRA_BIN and pointed it to the executable file ASTRA and it worked!

Thanks a lot for your answer!