pytmatrix-lte is a Python package to simulate how particles scatter electromagnetic waves (for example in radar applications).
This project is a maintained update of the original jleinonen/pytmatrix so it works with modern Python versions.
You need:
- Python 3.11 or newer
gfortraninstalled on your computer
Install gfortran (example with conda):
conda install -c conda-forge gfortranInstall the package:
pip install git+https://github.com/ltelab/pytmatrix-lte.gitCheck that it works:
python -c "import pytmatrix; print(pytmatrix.__version__)"
python -c "import pytmatrix; raise SystemExit(pytmatrix.run_tests())"See the usage wiki: PyTMatrix Wiki
If you want to contribute and edit the code locally:
micromamba install -c conda-forge gfortran meson meson-python ninja numpy scipy pytest
pip install -e . --no-build-isolation --force-reinstall
pytestIf you use free-threaded Python, run commands with GIL enabled:
PYTHON_GIL=1 python -m pytest