refloxide

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

Installation

pip install refloxide
pip install 'refloxide[plugin]'   # refnx modeling / fitting stack

With uv (recommended):

uv add refloxide
uv add 'refloxide[plugin]'

Wheels include the wgpu GPU path (device="gpu"; see GPU backend). refloxide[core] matches the bare install; refloxide[all] aliases [plugin].

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 --extra plugin

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.