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¶
Check the installed version:
Upgrade to the newest release:
Install in a virtual environment (recommended)¶
Keeping each project in its own environment avoids version clashes with other tools.
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:
Optional tools for the guides¶
The guides use only NumPy. For tables and plots, these are handy:
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.