Metadata-Version: 2.3
Name: iitmm
Version: 0.1.0
Summary: Invariant Imbedding T-Matrix Method python codes
Requires-Dist: jax>=0.10.1
Requires-Dist: numba>=0.65.1
Requires-Dist: pywigxjpf>=1.13.3
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# Invariant Imbedding T-matrix method.

In this Python package, the T-matrix method calculation for dielectric particles is implemented.

---

## Main features:
- written in Python with JAX
- connects to `treams` library
- supports axially symmetric particles

Things to keep in mind:
- Only dielectric particles are supported
- T-matrix is calculated in vacuum, so the particles are defined by their relative permittivity


# Development:

## Installation:

First, install `uv` package manager.
Then in the project root, create a virtual environment and install the dependencies:
```bash
uv sync
```

## Before committing:

```bash
uv run ruff format
uv run ruff check
uv run pyright
uv run pytest
```
or
```bash
uv run pre-commit run --all-files
```

For running computationally heavy tests, use:
```bash
uv run pytest --run-computations
```

## Documentation:

The documentation is built with Sphinx.

Before building the documentation, install the dependencies:
```bash
uv sync --group docs
```
Then, build the documentation:
```bash
uv run sphinx-build docs docs/_build/html
```
You can also run a local server to view the documentation and automatically rebuild it when the source files change:
```bash
uv run sphinx-autobuild docs docs/_build/html
```

## Project Structure:

README.md - general description of the project
/src - folder for code placement
/docs - folder for documents placement
/tests - folder for tests placement
