Skip to content

Instantly share code, notes, and snippets.

@Turquois3
Turquois3 / Zeeman away
Last active May 26, 2026 22:50
Zeeman effect analysis tool for Cd lamp, assisted by Claude by Anthropic.
"""
Zeeman ring analyzer for Fabry-Perot images.
SETUP_MODE = 'transverse' -> Bohr-magneton fit (square-array method)
SETUP_MODE = 'longitudinal' -> per-image line-count diagnostics
MODE = 'detect' -> process images, append to JSON (transverse only)
MODE = 'analyse' -> read JSON, fit / summarise
AVERAGE_PER_FIELD (analyse, transverse only) ONLY USE IF U HAVE PERFECT DATA POINTS AND NO BLUR IN THE IMAGES!!!!!