Skip to main content

Python bindings for molrs molecular simulation library

Project description

molrs Python bindings

molrs provides Python bindings for the MolCrafts molecular modeling toolkit.

Install

pip install molrs

Quick start

import numpy as np
import molrs

frame = molrs.Frame()
atoms = molrs.Block()
atoms.insert("x", np.array([0.0, 0.9572, -0.2390], dtype=np.float32))
atoms.insert("y", np.array([0.0, 0.0, 0.9266], dtype=np.float32))
atoms.insert("z", np.array([0.0, 0.0, 0.0], dtype=np.float32))
atoms.insert("element", ["O", "H", "H"])
frame["atoms"] = atoms

target = molrs.Target(frame, count=10).with_name("water")
result = molrs.Packer(tolerance=2.0, precision=0.01).pack([target], seed=2026)

print(result.converged, result.positions.shape)

Development

maturin build
pytest -q

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

molcrafts_molrs-0.0.4-cp312-cp312-manylinux_2_34_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file molcrafts_molrs-0.0.4-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for molcrafts_molrs-0.0.4-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 cfe87b08bf591e3c9c8e70c22fa14d8a5c198306942d12a6d4530c3685d6f36a
MD5 9f0aa1f73a9ab2ce29af49e9050eb437
BLAKE2b-256 d9a19b86e809787149efb71cf7e6fc1032c381e1644f336bf3cc13c20f5b8012

See more details on using hashes here.

Provenance

The following attestation bundles were made for molcrafts_molrs-0.0.4-cp312-cp312-manylinux_2_34_x86_64.whl:

Publisher: publish-molrs-python.yml on MolCrafts/molrs

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