Skip to content

[BUG] Passing the wrong forces key results in untrained forces #1159

Description

@ppegolo

Summary

Some students at the ICTP school filled the forces key of the options file with the wrong value. metatrain didn't complain and just trained on the energy, resulting in a bad training. Maybe we should add some check that the key exists in the XYZ file (I'll have a look when I get back)

Expected behavior

options.yaml:

...
forces:
  key: something_wrong

Result: error, something_wrong is not in the XYZ file.

Actual behavior

Train discarding forces.

Version

2026.2

Steps to reproduce

No response

Further information, files, and links

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions