8000 introduce `GenericASECalculator` and `ApplyCalculator` by PythonFZ · Pull Request #403 · zincware/IPSuite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

introduce GenericASECalculator and ApplyCalculator #403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitH 8000 ub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

PythonFZ
Copy link
Member
@PythonFZ PythonFZ commented May 9, 2025

This new way of defining calculators allows for a setup like

import ipsuite as ips

project = ips.Project()

cp2k = ips.GenericASECalculator(
    module="ase.calculators.cp2k",
    class_name="CP2K",
    file_paths=[
        "GTH_
8000
BASIS_SETS",
        "GTH_POTENTIALS",
    ],
    parameter_paths="cp2k.yaml",
)

with project:
    data = None
    ips.ApplyCalculator(
        data=data,
        model=cp2k,
    )

project.build()
  • tests
  • requires new zntrack release
  • documentation
  • deprecate old code
  • laufband

This does not work with e.g. a calculator like Plumed that uses zntrack.deps to depend on another calculator. But due to the fact that zntrack.deps accepts on and off graph nodes, this won't be an issue.

@PythonFZ PythonFZ linked an issue May 9, 2025 that may be closed by this pull request
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.

Refactor calculator design
1 participant
0