Skip to content

Conversation

@gelzinyte
Copy link
Contributor

After all, I think this should be calc.results.get, not calc.get_property. If no properties are given, that defaults to all of the standard properties in calc.results, so a direct .get is more straightforward. That's what happens in calc.get_property(name, allow_calculation=False) anyway, but it also checks if the property is in calc.implemented_properties. And calculators aren't consistent about that, e.g. free_energy is in calc.results, but not in calc.implemented_properties for xtb. implemented_properties don't matter if we use calc.results.get instead.

@gelzinyte gelzinyte requested a review from bernstei July 17, 2025 13:18
@bernstei
Copy link
Contributor

One possible typo in the error message, otherwise I'm happy with it

@gelzinyte
Copy link
Contributor Author

That's a typo.. Great, thanks for having a look!

@bernstei
Copy link
Contributor

I'll merge as soon as the tests pass

@gelzinyte gelzinyte merged commit b4c97aa into libAtoms:main Jul 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants