Skip to content

Breaking changes in newtonnet 2.0 #19

@Andrew-S-Rosen

Description

@Andrew-S-Rosen

Hi @ericyuan00000: I'm getting a bunch of failed tests with the new newtonnet 2.0 that you can see here: https://github.com/Quantum-Accelerators/quacc/actions/runs/14544325243/job/40807607302?pr=2755. Any ideas on how to proceed?

They are all related to:

    def load_model(self, model):
        # TODO: Load model with only weights
        model = torch.load(model, map_location=self.device[0], weights_only=False)
        keys_to_keep = ['energy']
        for key in self.properties:
            key = {
                'energy': 'energy',
                'free_energy': 'energy',
                'forces': 'gradient_force',
                'stress': 'virial',
                'hessian': 'hessian',
            }.get(key)
            keys_to_keep.append(key)
>           if key in model.infer_properties:
E           AttributeError: 'dict' object has no attribute 'infer_properties'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions