Skip to main content

Differentiable Ray Tracing Toolbox for Radio Propagation Simulations

Project description

DiffeRT logo

DiffeRT

Latest Release Python version Documentation DOI Codecov

Usage

WARNING: Until this package reaches version 0.1.x, breaking changes should be expected. Checkout the ROADMAP for future features.

If you have any suggestion regarding the development of this package, please open an issue.

The easiest way to install DiffeRT is through pip:

pip install differt

We provide pre-built binaries for most platforms. If you want (or need) to build the package from the source distribution, check out the requirements below.

Contributing

IMPORTANT: The current documentation is very light and a more complete guide for new contributors will be written in the near future.

Until then, do not hesitate to reach me for help with GitHub issues!

This project is built using both Python and Rust code, to provide an easy-to-use but performant program. It also heavily uses the capabilities brought by JAX for numerical arrays.

Requirements

To run build this package locally, you need:

  • Python 3.10 or above;
  • Rust stable toolchain;
  • any modern C compiler;
  • just to easily run commands listed in justfiles;
  • Maturin for building Python bindings from Rust code;
  • and uv to manage this project.

This project contains justfiles with recipes[^1] for most common use cases, so feel free to use them instead of the commands listed below/

[^1]: just is as alternative tool to Make, that provides more modern user experience. Enter just to list all available recipes.

Local development

The following commands assume that you installed the project locally with:

uv sync

and that you activated the corresponding Python virtual environment:

. .venv/bin/activate  # or .venv\Scripts\activate on Windows

Documentation

To generate the documentation, please run the following:

just docs/build

Finally, you can open docs/build/html/index.html to see the generated docs.

Other recipes are available, and you can list them with just docs/.

Testing

Both Rust and Python codebases have their own tests and benchmarks.

Testing Rust code

You can test Rust code using Cargo:

cargo test

or benchmark it:

cargo bench

Testing Python code

Similarly, you can test Python code with Pytest:

pytest

or benchmark it:

pytest --benchmark-enable differt/tests/benchmarks

Citing

If you use this software, please cite it as detailed here.

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

differt-0.0.23.tar.gz (44.2 kB view details)

Uploaded Source

Built Distribution

differt-0.0.23-py3-none-any.whl (54.4 kB view details)

Uploaded Python 3

File details

Details for the file differt-0.0.23.tar.gz.

File metadata

  • Download URL: differt-0.0.23.tar.gz
  • Upload date:
  • Size: 44.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for differt-0.0.23.tar.gz
Algorithm Hash digest
SHA256 7383d6384ac51d9f8be7f5190e6e294e59b9f29d244fda876e3bd316a6ad9ecc
MD5 7af344752c6053dde974d3183f95aad6
BLAKE2b-256 4011b73ef89940d64d40b85c32874a5cec457fe2c743f97f219649a66bc14549

See more details on using hashes here.

File details

Details for the file differt-0.0.23-py3-none-any.whl.

File metadata

  • Download URL: differt-0.0.23-py3-none-any.whl
  • Upload date:
  • Size: 54.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for differt-0.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 bca740fb6b02793ad6019fb40c93e35f4703f8003d1923e70b310b730ccfdb13
MD5 ff7e7453b9b543afd000dee91aff464e
BLAKE2b-256 a55193e47ea75b47771ac011c6ad6442f5ac0902dc61347756ca886736033472

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page