Skip to main content

Nanobind bindings to the eOn C++ client (Matter, Parameters, Potential, Jobs, NEB, RGPOT)

Project description

pyeonclient

In-process eOn client for Python. First-class algorithm objects on Matter (not a workdir wrapper).

Class / function Role
Matter Geometry + PEF (ASE Atoms analogue)
ImprovedDimer / Dimer / Lanczos / Davidson Min-mode
MinModeSaddleSearch Single-ended saddle search
NudgedElasticBand NEB band (list[Matter])
Hessian / get_prefactors Vibrational analysis / HTST
make_job + Job.run Full JobType factory (workdir jobs)

Docs: Python API

Install

pip install pyeonclient
pip install 'pyeonclient[ase]'           # Matter ↔ ASE geometry helpers
pip install 'pyeonclient[models]'        # optional Pydantic DimerSpec / NebSpec
# uv: uv pip install 'pyeonclient[models]'
# Core Dimer/NEB work without pydantic; C++ + light Python still enforce
# accelerant="gp" only with method="improved".

Example (dimer → saddle)

import numpy as np
import pyeonclient as pyec

params = pyec.Parameters()
params.potential = pyec.PotType.LJ
pot = pyec.make_potential(params.potential, params)
matter = pyec.Matter(pot, params)
# ... set positions / cell / numbers ...

matter.relax()
mode0 = np.random.default_rng(0).normal(size=matter.positions.shape)
dimer = pyec.ImprovedDimer(matter, params, pot)
dimer.compute(matter, mode0)

ss = pyec.MinModeSaddleSearch(
    matter, dimer.eigenvector, matter.potential_energy, params, pot
)
status = ss.run()
print(pyec.saddle_status_message(status), ss.eigenvalue)

NEB

path = [pyec.from_ase(img, pot, params) for img in images]
neb = pyec.NudgedElasticBand(path, params, pot)
neb.compute()
# Stamped ConFrames for plots (no neb.con write required):
frames = neb.path_frames()  # list[readcon.ConFrame]
path = list(neb.path_images())

Min / saddle movies (in-memory)

out, ok = matter.relax(retain_frames=True)  # default inplace=False returns working copy
movie = out.movie_frames()  # list[readcon.ConFrame]

ss = pyec.MinModeSaddleSearch(matter, mode, e0, params, pot)
ss.run_retain_frames()
climb = ss.climb_frames()

Build

meson setup build -Dwith_pyeonclient=true
meson compile -C build
pytest tests/test_pyeonclient_eigenmode.py tests/test_pyeonclient_neb.py -v

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyeonclient-0.3.6.tar.gz (24.6 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyeonclient-0.3.6-cp314-cp314t-manylinux_2_28_x86_64.whl (10.2 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ x86-64

pyeonclient-0.3.6-cp313-cp313t-manylinux_2_28_x86_64.whl (10.2 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.28+ x86-64

pyeonclient-0.3.6-cp312-abi3-manylinux_2_28_x86_64.whl (10.2 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ x86-64

File details

Details for the file pyeonclient-0.3.6.tar.gz.

File metadata

  • Download URL: pyeonclient-0.3.6.tar.gz
  • Upload date:
  • Size: 24.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for pyeonclient-0.3.6.tar.gz
Algorithm Hash digest
SHA256 0c1e815abf25457a4161087886997f3477bc6c200434d3d0935e5712f119e23f
MD5 b507f75b83fc701b7f1a6ad8a8d247a6
BLAKE2b-256 9b71a793c1bc85431b464d972bae474c969e6c7a0e9a1970d6a0adbf7dfda2e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyeonclient-0.3.6.tar.gz:

Publisher: pyeonclient-wheels.yml on TheochemUI/eOn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyeonclient-0.3.6-cp314-cp314t-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyeonclient-0.3.6-cp314-cp314t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3060b543901d23f137be497ea364b5bddd9883ab1cbd6ae1d962c5c88332bd46
MD5 bc1d5bf75fdfb81afa7eac4c2cb3266b
BLAKE2b-256 dd062e7616e56de4059d82038fdf176d0fb5c0f03deeaf57a8689b1cd40849fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyeonclient-0.3.6-cp314-cp314t-manylinux_2_28_x86_64.whl:

Publisher: pyeonclient-wheels.yml on TheochemUI/eOn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyeonclient-0.3.6-cp313-cp313t-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyeonclient-0.3.6-cp313-cp313t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ccd03a24f95e761069fcdb83ae8f09802666d23ae259b676c333f421dd8b8bde
MD5 b961702ff35113de9135f0197bf4b781
BLAKE2b-256 917df86cba8f99c71036e14dd7c258f5a757dce49ec333408191a7565966fd30

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyeonclient-0.3.6-cp313-cp313t-manylinux_2_28_x86_64.whl:

Publisher: pyeonclient-wheels.yml on TheochemUI/eOn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyeonclient-0.3.6-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyeonclient-0.3.6-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9b38d76e7413c7bc4b08c91f51e0f1834bb5171145e69ec6f1a858723cebb077
MD5 f89e8476f2cdbe5349f85c1858103cd3
BLAKE2b-256 5b7f406fb5163dc1abc05af57ecdceec30972a0d0e3176d6a791bdf1b7e7da5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyeonclient-0.3.6-cp312-abi3-manylinux_2_28_x86_64.whl:

Publisher: pyeonclient-wheels.yml on TheochemUI/eOn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page