Skip to content

Complete AtomsCalculators units interface for ET StackedCalculator - #331

Draft
Alexsp32 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-atoms-calculators-interface
Draft

Alexsp32 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-atoms-calculators-interface

Conversation

Copilot AI commented Oct 23, 2026 •

Copy link
Copy Markdown

ETModels.StackedCalculator instances returned by convert2et_full lacked the unit metadata required by AtomsCalculators. Add the missing energy and length unit methods, matching the units used by ET calculator results.

  • Interface: energy_unit(calc) returns u"eV" and length_unit(calc) returns u"Å" for StackedCalculator.
  • Regression coverage: Assert both units on a convert2et_full result.
calc = ETModels.convert2et_full(model, ps, st)
AtomsCalculators.energy_unit(calc) # u"eV"
AtomsCalculators.length_unit(calc) # u"Å"

Co-authored-by: Alexsp32 <39826690+Alexsp32@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix AtomsCalculators interface for ETModels Complete AtomsCalculators units interface for ET StackedCalculator Oct 23, 2026
Copilot AI requested a review from Alexsp32 October 23, 2026 09:49

This branch has not been deployed

No deployments
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.

AtomsCalculators interface incomplete for ETModels

2 participants