Skip to content

Forcebalance fails to read some xyz files containing coordinates in scientific notation #233

@mark-mackey-cresset

Description

@mark-mackey-cresset

We get a very occasional failure in ForceBalance when reading xyz files:

exception: Expected coordinates at line 26 but got this instead:
O -0.11704586717873372 0.724057682273424 -5.2981017625329854e-11

It looks like the regexp check in read_xyz0 (around line 2930) gets confused when it encounters a number in scientific notation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions