Skip to content

Installation

Requirements

  • Python 3.10 or later
  • NumPy 1.24 or later (installed automatically)

crashmetrics has no other required dependencies. It runs on Windows, Linux and macOS.

Install from PyPI

python -m pip install crashmetrics

Check the installed version:

python -c "import crashmetrics; print(crashmetrics.__version__)"

Upgrade to the newest release:

python -m pip install --upgrade crashmetrics

Keeping each project in its own environment avoids version clashes with other tools.

python -m venv .venv
.venv\Scripts\activate
python -m pip install crashmetrics
python3 -m venv .venv
source .venv/bin/activate
python -m pip install crashmetrics

Behind a company proxy

If pip cannot reach PyPI, pass your proxy, or ask IT for the internal package mirror:

python -m pip install --proxy http://user:password@proxy.company.com:8080 crashmetrics
python -m pip install --index-url https://your-mirror/simple crashmetrics

Latest development version

To try changes that are merged but not yet released:

python -m pip install "git+https://github.com/vsk1729/crashmetrics.git"

Optional tools for the guides

The guides use only NumPy. For tables and plots, these are handy:

python -m pip install pandas matplotlib openpyxl

Run the examples

The repository has thirty-six runnable examples, with synthetic data except the four LS-DYNA examples (9, 18, 35 and 36), which read real output files, binout and keyword decks:

git clone https://github.com/vsk1729/crashmetrics.git
cd crashmetrics
python examples/01_signals_hic.py

Next: your first calculation.