Local-first particle decay simulator
Project description
ColliderX
ColliderX is a local-first particle decay simulator (MVP).
Run a short end-to-end flow: event simulation → Feynman diagram → summary plots.
Install
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Install Graphviz (optional, only needed for rendered feynman.png):
macOS:
brew install graphviz
Linux (Debian/Ubuntu):
sudo apt-get update
sudo apt-get install -y graphviz
Windows (PowerShell):
# Option 1: winget
winget install Graphviz.Graphviz
# Option 2: Chocolatey
choco install graphviz
Verify Graphviz is available:
dot -V
Note: pip install colliderx cannot reliably auto-install system Graphviz (dot) across all OS/package managers. ColliderX will still run without it and fall back to DOT-only output (feynman.dot).
Quick Run
Default (interactive, show-only):
python main.py -p "Muon" -n 1000
Save outputs to disk and avoid interactive windows:
python main.py -p "Muon" -n 1000 --save --no-show -o artifacts/flow_muon
Run with a seed:
python main.py -p "Muon" -n 1000 -s 42
CLI Flags (short)
-p, --particle: parent particle name (positional also supported)-n, --events: number of events to simulate-s, --seed: random seed-E, --energy: override parent energy (MeV)--save: persist generated files to-o/--out--no-show: do not open interactive plot windows-o, --out: output directory (defaultartifacts/run_<timestamp>)--decay: force a particular root decay mode--afb: enable forward-backward asymmetry (where applicable)
Saved Outputs (--save)
feynman.dot(DOT source)feynman.png(if Graphviz is available and rendering enabled)graphs/(PNG plots: decay modes, spectra, process-specific plots)summary.txt(run summary and counts)
Tests
pytest -q
If Graphviz is not installed, the tool falls back to writing DOT files only and continues the flow.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file colliderx-0.1.1.tar.gz.
File metadata
- Download URL: colliderx-0.1.1.tar.gz
- Upload date:
- Size: 57.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31ff3b5c0de9974f43cd3300977236b21b162edfd3f60c9c5c3d6aae3845cf91
|
|
| MD5 |
d7a2d6e5b5cdcc4bfe3b6d66796a834e
|
|
| BLAKE2b-256 |
e90bcdcd1991669cbfd9e5eeb7e4a64e43f6b46a84682fe61335e80474e9d8f8
|
File details
Details for the file colliderx-0.1.1-py3-none-any.whl.
File metadata
- Download URL: colliderx-0.1.1-py3-none-any.whl
- Upload date:
- Size: 77.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7315812949c7c433479661d51bc6dd1169e0022ab74d2421327a04e9513ab906
|
|
| MD5 |
88b7bfaea7252805ec81978dcd01f960
|
|
| BLAKE2b-256 |
3638797b9ede033397c6fdf34e42f93057e89841c069a03125c3283163d207e1
|