oxyz¶
oxyz reads and writes extxyz trajectories for atomistic simulation and machine-learning workflows. The native Python representation keeps per-atom columns and frame metadata; optional converters produce ASE, metatomic and torch-sim objects.
Using oxyz¶
Start with getting started: create a local trajectory, inspect its actual values and verify a write/read round trip. Then choose a guide for the task:
- Reading and selecting: return shapes, slices, repeated indices and iteration.
- Batching and streaming: array layout, provenance, batch budgets and schema compatibility.
- Writing: incremental output, codecs, append and stdout.
- Schemas and projection: infer a contract, validate input, fill fields and freeze patterns.
- Typed records: declare application fields and read typed records or dense record batches.
- Mixed datasets: choose projection or record unions, then select by member and distinguish missing values from real zeros.
- Compressed and remote sources: codecs, archive members, object storage and HuggingFace.
- Converters: ASE, metatomic and torch-sim workflows with explicit scientific conventions.
- Command line: inspect, check and freeze schemas.
For the contracts behind those workflows, see the data model, schemas and storage and streaming. The API reference routes public names to their source docstrings; format, compatibility and errors describe syntax and failure boundaries.
The repository README is a short installation and usage entry point. Runnable example scripts use small bundled datasets.
Choose native frames when you need the file's own names and values, batches for concatenated arrays, or records for declared typed fields. Converter modules are optional and have their own installation extras. NumPy and PyYAML are the base runtime dependencies.
Performance¶
The performance overview compares full reads of a real dataset and dataset-size scaling, with separate NumPy and ASE outputs. It includes the measurement environment and links to complete results and reproduction commands.
Developing oxyz¶
- Development setup: build from a checkout and choose the right verification loop.
- Architecture: find the layer that owns a change and the tests that guard it.
- Testing: source examples, wheel tiers, types and Rust/Python checks.
- Performance: benchmark methodology and the limits of published comparisons.
- Writing documentation: executable examples, deterministic output and the local preview.
- Accepted decisions: durable contracts and their trade-offs.
The site tracks main; features may differ from the latest PyPI release.