Metadata-Version: 2.4
Name: chihiro
Version: 0.2.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Dist: pytest>=7.0 ; extra == 'dev'
Requires-Dist: numpy>=1.20 ; extra == 'dev'
Requires-Dist: matplotlib>=3.5 ; extra == 'dev'
Requires-Dist: numpy>=1.20 ; extra == 'numpy'
Requires-Dist: matplotlib>=3.5 ; extra == 'plot'
Provides-Extra: dev
Provides-Extra: numpy
Provides-Extra: plot
Summary: Spectral-geometric plasma confinement diagnostic
Keywords: plasma,tokamak,MHD,stability,confinement,diagnostic
Author-email: Bee Rosa Davis <bee_davis@alumni.brown.edu>
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Bug Tracker, https://github.com/davis-plasma/chihiro/issues
Project-URL: Homepage, https://zenodo.org/records/18883834
Project-URL: Repository, https://github.com/davis-plasma/chihiro

# chihiro

**Spectral-geometric plasma confinement diagnostic.**

Zero free parameters. Sub-10 ms diagnostics. Built on the Davis Field Equations framework.

## Installation

```bash
pip install chihiro
```

## Quickstart

```python
import chihiro

# Analytic model equilibrium
eq = chihiro.from_params(r_major=6.2, a_minor=2.0, b_toroidal=5.3,
                          i_plasma=15.0, beta_n=1.8)
result = chihiro.diagnose(eq)
print(result.status)       # "GREEN", "YELLOW", "ORANGE", or "RED"
print(result.spectral_gap) # λ₁ of the CHT operator
print(result.c_max)        # Plateau capacity C_max

# Load a G-EQDSK file
eq = chihiro.load_geqdsk("g175844.03100")
result = chihiro.diagnose(eq)
```

## Paper

DOI: [10.5281/zenodo.18883834](https://doi.org/10.5281/zenodo.18883834)

Author: Bee Rosa Davis

