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

Fix the function `write_input_file` of `Astra` class #25

Open tanweihou opened 10 months ago

tanweihou commented 10 months ago

In version 0.6.1, write_input_file of Astra class needs input filename to be astra.in in its else statement. This causes the simulation to fail if user supplies an input file with a different filename. This commit fixes this issue.