Skip to content

total energy not found error? #4

Description

@Mofahdi

I used the same settings as "config_finetuning.yaml" with one minor change shown below:

data:
target: nequip.data.datamodule.ASEDataModule
seed: 456 # dataset seed for reproducibility
#ase_args: {'total_energy': REF_energy, 'forces': REF_forces}
key_mapping:
total_energy: REF_energy
forces: REF_forces

in my "xyz" file, energy and forces use the keys: REF_energy and REF_forces, respectively

I got the following error:
normed = torch.einsum("n..., n -> n...", data[self.field], num_atoms)
~~~~^^^^^^^^^^^^
KeyError: 'total_energy'

can you please suggest how to solve this error?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions