Skip to main content

Helpers around reactive MD post-processing workflows (ReacNetGenerator).

Project description

reacnet-md-tools

Small, dependency-light helpers around reactive MD post-processing workflows, built to make ReacNetGenerator runs more repeatable.

Design goals:

  • minimal dependencies
  • safe subprocess execution (no shell=True)
  • clear, agent-friendly CLIs

Install / run

Run without installing (recommended)

uvx --from reacnet-md-tools rng-pipeline --help

Install into an environment

python -m pip install -U reacnet-md-tools

Commands

rng-xs2x

Convert a LAMMPS dump with scaled coordinates xs/ys/zs into absolute coordinates x/y/z.

rng-xs2x -i in.lammpstrj -o out.lammpstrj

Limitations: orthorhombic boxes only (triclinic tilt factors are rejected with an error).

rng-infer-atomnames

Infer reacnetgenerator -a atomname order from a LAMMPS data file by parsing the Masses section and matching masses to common elements.

rng-infer-atomnames path/to/system.data
# -> e.g. "C H O Cl"

rng-pipeline

End-to-end helper:

  1. If the input is a LAMMPS dump and uses xs/ys/zs, convert it to x/y/z into out/<basename>/dump_with_xyz.lammpstrj.
  2. If --atomnames is not provided, try to infer them from a nearby LAMMPS data file (or ask you to pick one with --pick-data).
  3. Run ReacNetGenerator, writing everything into out/<basename>/.

Example:

rng-pipeline \
  --input /path/to/traj.lammpstrj \
  --type dump \
  --outroot out \
  --pick-data \
  --stepinterval 10 \
  --maxspecies 50

ReacNetGenerator runner selection

  • default --runner auto:
    • use local reacnetgenerator if found on PATH
    • otherwise run via: uvx --from reacnetgenerator reacnetgenerator ...

Development

Build (wheel + sdist):

python -m pip install -U build
python -m build

License

MIT (see LICENSE).

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

reacnet_md_tools-0.1.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

reacnet_md_tools-0.1.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file reacnet_md_tools-0.1.0.tar.gz.

File metadata

  • Download URL: reacnet_md_tools-0.1.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for reacnet_md_tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2440ce9a40bfdf101f8ed2f0a077896baa91e62e11a1d7e5929e51514da81633
MD5 ccf1c6f0128f951c0d708f4a001fb0ee
BLAKE2b-256 4cbfad124142b5ff1b770e66f69f18aae82a55187fd1be5b797523c06bb10971

See more details on using hashes here.

Provenance

The following attestation bundles were made for reacnet_md_tools-0.1.0.tar.gz:

Publisher: publish.yml on hcustc/reacnet-md-tools

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

File details

Details for the file reacnet_md_tools-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for reacnet_md_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0d97c4669743efb958e1a9df19fd0e9d018c711146fd61ea1be5ca09fecf200
MD5 4239ded6cccf61a23b3cc698a07fd8bd
BLAKE2b-256 f3a69e5ebf9e2e3e074fdf6c0220d53c40e288b434679acd359ddf712adb304d

See more details on using hashes here.

Provenance

The following attestation bundles were made for reacnet_md_tools-0.1.0-py3-none-any.whl:

Publisher: publish.yml on hcustc/reacnet-md-tools

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