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

Implant Energies < 1keV not properly recognized #8

Open
AlbertKumar opened this issue Nov 15, 2022 · 0 comments
Open

Implant Energies < 1keV not properly recognized #8

AlbertKumar opened this issue Nov 15, 2022 · 0 comments

Comments

@AlbertKumar
Copy link

Thank you for the excellent program.

In output.py, changing the variable "double_regex" fixes it.

For example:
double_regex = r'[-+]?\d+\.?\d*(?:[eE][-+]?\d+)?'

Should be changed to:

double_regex = "[+-]?((\d+(\.\d*)?)|(\.\d+))([eE][+-]?\d+)?"
## AK: Allows _read_ion to catch numbers like ".5 keV" in IONIZ.txt.
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

1 participant