Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ files or shard directories.
## Installation

```bash
pip install atompack
pip install atompack-db
```

The package is imported as `atompack` after installation.
Hugging Face support ships in the base package.

### Install from source
Expand Down Expand Up @@ -102,8 +103,6 @@ strong batch-write throughput, and storage efficiency that stays close to compac
formats.

For the benchmark narrative and current figures, see the
[release blog post](https://entalpic-atompack.readthedocs-hosted.com/en/latest/blog/atompack-release.html)
and
[performance docs](https://entalpic-atompack.readthedocs-hosted.com/en/latest/performance.html).

## Documentation
Expand Down
4 changes: 2 additions & 2 deletions atompack-py/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import numpy as np

positions = np.array([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0]], dtype=np.float32)
atomic_numbers = np.array([6, 8], dtype=np.uint8)
mol = atompack.Molecule(positions, atomic_numbers)
mol = atompack.Molecule.from_arrays(positions, atomic_numbers)
mol.energy = -123.456
mol.forces = np.array([[0.1, 0.2, 0.3], [0.4, 0.5, 0.6]], dtype=np.float32)

db = atompack.Database("data.atp")
db = atompack.Database("data.atp", overwrite=True)
db.add_molecule(mol)
db.flush()
```
Expand Down
4 changes: 2 additions & 2 deletions atompack-py/python/atompack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
>>>
>>> positions = np.array([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0]], dtype=np.float32)
>>> atomic_numbers = np.array([6, 8], dtype=np.uint8)
>>> mol = atompack.Molecule(positions, atomic_numbers)
>>> mol = atompack.Molecule.from_arrays(positions, atomic_numbers)
>>> mol.energy = -123.456
>>> mol.forces = np.array([[0.1, 0.2, 0.3], [0.4, 0.5, 0.6]], dtype=np.float32)

Save to database:

>>> db = atompack.Database("data.atp")
>>> db = atompack.Database("data.atp", overwrite=True)
>>> db.add_molecule(mol)
>>> db.flush()

Expand Down
4 changes: 2 additions & 2 deletions atompack-py/python/atompack/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class Molecule:
>>> import numpy as np
>>> positions = np.array([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0]], dtype=np.float32)
>>> atomic_numbers = np.array([6, 8], dtype=np.uint8)
>>> mol = Molecule(positions, atomic_numbers)
>>> mol = Molecule.from_arrays(positions, atomic_numbers)
>>> mol.energy = -100.5
>>> mol.forces = np.array([[0.1, 0.2, 0.3], [0.4, 0.5, 0.6]], dtype=np.float32)
>>> print(len(mol)) # 2
Expand Down Expand Up @@ -433,7 +433,7 @@ class Database:
--------
Create and write molecules:

>>> db = Database("molecules.atp")
>>> db = Database("molecules.atp", overwrite=True)
>>> db.add_molecule(mol1)
>>> db.add_molecule(mol2)
>>> db.flush()
Expand Down
2 changes: 1 addition & 1 deletion atompack-py/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! This module exposes the atompack library to Python using PyO3.

#![allow(clippy::useless_conversion)]
// PyO3 0.22 macro-generated code triggers this lint; safe to suppress until PyO3 upgrade.
// PyO3 0.26 macro-generated code triggers this lint; safe to suppress.
#![allow(unsafe_op_in_unsafe_fn)]

use atompack::{
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
copyright = "2026, Entalpic"
author = "Ali Ramlaoui and contributors" # Contributors to the package
release = (
"0.2.0" # Current version of the package, can be retrieved programmatically too.
"0.2.1" # Current version of the package, can be retrieved programmatically too.
)

# -- General configuration ---------------------------------------------------
Expand Down
Loading