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

boundary

Fit an explicit model to selected candidate locations across sweeps.

catalog

Discovery and cataloguing of magnetometry measurement files.

constants

Physical constants and unit-conversion factors used across calamari.

exceptions

Exception types raised deliberately by calamari.

fitting

Least-squares fitting with iminuit for Calamari.

io

File input for calamari: content-sniffing loader dispatch.

measurement

Measurements with explicit quantities, units and scientific choices.

plot

Matplotlib plotting helpers for calamari.

quality

Per-point quality screening: which points of a file deserve a second look.

repeats

Repeat-measurement grouping and aggregation.

sample

Sample metadata and unit conversion between raw SQUID readings and physics units.

scales

How detected features behave across a declared set of smoothing windows.

simulate

Generate synthetic MPMS3 inputs and physics-based signals.

style

Journal figure styles: column-width figures that match a target journal.

sweeps

Sweep segmentation and branch-folding primitives.

transitions

Phase-transition candidate detection for 1-D magnetometry sweeps.