diff --git a/electronicparsers/vasp/parser.py b/electronicparsers/vasp/parser.py index f2600775..ae96111d 100644 --- a/electronicparsers/vasp/parser.py +++ b/electronicparsers/vasp/parser.py @@ -310,7 +310,7 @@ def str_to_header(val_in): return dict(version=version, subversion=subversion, platform=platform, date=date, time=time) def str_to_positions(val_in): - re_position = re.compile(r'\d*\s*(\-*\d+\.\d+)\s*(\-*\d+\.\d+)\s*(\-*\d+\.\d+)') + re_position = re.compile(r'\d*\s*(\-?\d*\.\d+)\s*(\-?\d*\.\d+)\s*(\-?\d*\.\d+)') positions = [] for val in val_in.strip().split('\n'): position = re_position.search(val)