refloxide

A blaxingly fast 4x4 transfer matrix method for simulating reflection though stratified media

Installation

Install using pip:

pip install refloxide

Or using uv (recommended):

uv add refloxide

Quick Start

import refloxide

print(refloxide.__version__)

Team and support

Development

Prerequisites

  • Python 3.13+
  • uv for package management

Setup

Clone the repository and install dependencies:

git clone https://github.com/HarlanHeilman/refloxide.git
cd refloxide
uv sync --group dev

Running Tests

uv run pytest

Code Quality

# Lint
uv run ruff check .

# Format
uv run ruff format .

# Type check
uv run ty check

Prek Hooks

Install prek hooks:

prek install

License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details.