calamari#
Calamari – Python tools for analysing SQUID magnetometry data.
A short tour#
Calamari turns a Quantum Design MPMS 3 file (sniffed by
content, not extension) into a format-agnostic
Measurement
(calamari.io); pairs it with a physical
Sample
(calamari.sample) to convert raw emu readings into Bohr magnetons
per ion/formula-unit or molar/mass susceptibility; indexes a directory of
files into a de-duplicated inventory (calamari.catalog); finds
candidate phase-transition features in a swept sequence
(calamari.transitions), and describes how they hold up across
smoothing windows (calamari.scales); fits a model with iminuit
(calamari.fitting), including a stated model through one
criterion’s points across a family of sweeps (calamari.boundary);
and plots the result on a matplotlib Axes
(calamari.plot). calamari.simulate
generates synthetic MPMS3 files and physics-shaped signals for
testing and examples – no real instrument file is required to try any of
this.
Quickstart#
>>> import calamari
>>> m = calamari.load("run.dat")
>>> sample = calamari.Sample(name="my compound", mass_mg=10.0)
>>> result = calamari.fit("curie_weiss", m.temperature, m.chi_real)
>>> print(result.summary())
Modules
Fit an explicit model to selected candidate locations across sweeps. |
|
Discovery and cataloguing of magnetometry measurement files. |
|
Physical constants and unit-conversion factors used across calamari. |
|
Exception types raised deliberately by calamari. |
|
Least-squares fitting with iminuit for Calamari. |
|
File input for calamari: content-sniffing loader dispatch. |
|
Measurements with explicit quantities, units and scientific choices. |
|
Matplotlib plotting helpers for calamari. |
|
Per-point quality screening: which points of a file deserve a second look. |
|
Repeat-measurement grouping and aggregation. |
|
Sample metadata and unit conversion between raw SQUID readings and physics units. |
|
How detected features behave across a declared set of smoothing windows. |
|
Generate synthetic MPMS3 inputs and physics-based signals. |
|
Journal figure styles: column-width figures that match a target journal. |
|
Sweep segmentation and branch-folding primitives. |
|
Phase-transition candidate detection for 1-D magnetometry sweeps. |