Python surface#
Human lookup of Frame,
IceCounts,
CageScore, read(), and
the ASE helpers. Napoleon autodoc of every signature is the
API reference page.
Frame#
Frame is the one-frame handle. Load a
LAMMPS dump, an ASE Atoms, or raw arrays, then call
chill_plus() or
cages(). Classification does not write
files. Prefer read(),
from_ase(), or
from_arrays() over constructing
Frame by filename.
Trajectory is an alias of Frame.
Constructors#
name |
role |
|---|---|
LAMMPS dump; guesses type 2 then type 1 |
|
ASE |
|
|
|
XYZ via |
|
PDB / GRO / DCD when chemfiles is linked |
|
eOn |
Package-level aliases:
from_ase(), from_arrays(),
from_xyz(), from_chemfiles(),
from_con().
Geometry and graphs#
name |
role |
|---|---|
analysed particle count ( |
|
orthorhombic box lengths |
|
list of |
|
cutoff neighbour list ( |
|
hydrogen-bond neighbour list |
|
primitive rings up to size 6 |
|
reload a later frame from the same file |
Classification#
name |
role |
|---|---|
CHILL+ ice labels; no files written |
|
CHILL ice labels; no files written |
|
alias of |
|
alias of |
|
HC / DDC membership ( |
cages() with seeded=True is the
hysteresis construction. seeded=False is cutoff-graph
affiliation on this frame’s six-rings.
Export and descriptors#
name |
role |
|---|---|
ASE |
|
solvis |
|
local and neighbour-averaged |
|
SOAP power spectrum |
|
per-atom |
Prism, monolayer, and RDF helpers write engine output. See the Frame autodoc on API reference.
IceCounts#
IceCounts is the histogram returned by
chill_plus() and
chill().
Keys are the AtomStateType names (cubic, hexagonal,
water, interfacial, clathrate, interClathrate,
unclassified, reCubic, reHex). Missing keys read as
0 via attribute access, so counts.cubic and
counts["hexagonal"] are equivalent. repr omits zero-count
labels.
CageScore#
CageScore is the per-atom score returned
by cages().
A molecule in an HC is ice Ih; a molecule in a DDC is ice Ic.
read#
read() is the suffix-dispatching loader.
available_readers() reports which compiled
readers this build linked.
suffix |
constructor |
|---|---|
|
|
|
|
|
|
|
Common kwargs: frame (1-indexed), cutoff (Angstroms,
default 3.5), bonded ("auto", "hbond", "cutoff"),
atom_type, region. bonded="auto" uses hydrogen bonds
when hydrogens are available.
Builds without chemfiles or readcon raise RuntimeError when
those suffixes are used.
ASE#
from_ase() / from_ase()
build a Frame from an ASE Atoms.
to_ase() is the inverse.
Install: pip install 'pydseams[ase]'. The cell must be
orthorhombic. select is a symbol, an atomic number, or
None (every atom). Default select="O".
to_ase writes arrays["ice_type"] after CHILL and
arrays["hc"] / arrays["ddc"] after cages(). A frame
loaded from a LAMMPS dump (no ASE symbols) uses O as the
fallback species.
Implementation autodoc is the ASE helpers section of API reference. Walkthrough: Classify ASE Atoms.
to_solvis() wraps the same Atoms. Install:
pip install 'pydseams[solvis]'.
Package names#
name |
role |
|---|---|
|
Python package |
|
compatibility alias of |
|
compiled registrations |
|
alias of |
|
alias of |
|
alias of |
Requires Python 3.12+. Wheels are the CPython 3.12 limited ABI.
yoda names (mocked in the Sphinx build) are tabulated on the
API reference page.