Skip to main content

cryosweep

DOI

Analysis of Quantum Design PPMS and MPMS measurement files (.dat) — a Qt-free analysis core with a JSON contract, a command-line interface, and a desktop GUI built on the same analyzers.

One file in, physics out: cryosweep detects which measurement it is looking at, separates the sweeps, fits the appropriate models, and reports what it found — including when it cannot report something, and why.

The cryosweep heat-capacity tab: low-temperature Cp/T models, full-range Debye-Einstein fit, entropy S(T), and per-field gamma and Debye temperature

That last clause is the point. In the status bar above, cryosweep reports θ_D drifting 160 % across fields — the lattice should be field-independent — and a Sommerfeld coefficient γ that has gone negative. Neither is handed back as a result; both are flagged as physics that does not hold.

Probe What it fits
Magnetization (VSM) — QD + MPMS formats χ, 1/χ, Curie-Weiss (θ, C, μ_eff) with a window-sensitivity ladder
AC susceptibility (ACMS) χ′/χ″, superconducting screening step, T_c, χ″ peak / freezing temperature
Thermal transport (TTO) κ, Seebeck, ZT, Wiedemann-Franz decomposition, Lorenz ratio, κ_ph power law
Resistivity — QD Resistivity + AC Transport ρ(T), RRR ± σ, magnetoresistance, resistive T_c, power-law / Fermi-liquid fit
Heat capacity Debye-Einstein Cp(T), low-T Cp/T vs T², spin-fluctuation models, entropy S(T), Schottky
Hall effect Antisymmetrized R_xy, R_H, carrier density, mobility, R_H(T)

The physics behind each — the models, the fitted quantities, and the criteria the detectors use — is documented in docs/physics-reference.md.

Install

Python 3.11 or newer (developed and tested on 3.14). Check with python3 -V.

To run cryosweep on your data:

python3 -m venv ~/cryosweep
~/cryosweep/bin/pip install 'cryosweep[gui]'
~/cryosweep/bin/cryosweep-gui

That is plain pip installing the published wheel from PyPI into a directory of its own. To uninstall, delete ~/cryosweep. To type cryosweep instead of the full path, add alias cryosweep=~/cryosweep/bin/cryosweep to your shell profile. (On Windows the executables are in Scripts\ rather than bin/.)

If python3 -V printed something older than 3.11, name a newer one explicitly — python3.13 -m venv ~/cryosweep — or install one, e.g. brew install python@3.13.

If you already use uv or pipx, one line does the same: uv tool install 'cryosweep[gui]'.

To use cryosweep inside your own project, script, or agent:

pip install cryosweep

This gives you the analysis core and the cryosweep command line, with no Qt. Add the desktop app with pip install 'cryosweep[gui]'.

The GUI is optional because the analysis core and CLI are Qt-free by design, and Qt is by far the heaviest dependency here — leaving it out keeps an agent or CI install a quarter of the size. Installing without it still gives you every analyzer; only cryosweep-gui needs the extra, and it says so if you run it.

If pip refuses

No matching distribution found for cryosweep — your pip belongs to a Python older than 3.11. pip filtered out every release and then reported "none", which reads as though the project does not exist; the real reason is one line higher in its output (Ignored the following versions that require a different python version). Check with python3 -V and use the venv route above.

error: externally-managed-environment — your Python is managed by Homebrew or your distribution and refuses installs into itself (PEP 668). This is not a cryosweep restriction. Use the venv route above.

command not found: cryosweep after a successful install — it went into a venv that is not on your PATH. Call it by full path, or add the alias above.

From a clone, for development:

python3 -m venv .venv          # python3 must be 3.11+; see above
.venv/bin/pip install -e '.[gui]'

Quickstart

The examples/ folder has a runnable file per probe, so you can try everything before pointing it at your own data (examples/README.md says what each file shows and which tab/inputs to use — the Hall examples in particular open on the Resistivity tab first, because Hall measurements share the resistivity file format).

Those files ship with the repository rather than the wheel, so after a pip install fetch one first — or clone the repo and run the commands as written:

curl -O https://raw.githubusercontent.com/Vova2B/cryosweep/main/examples/heat_capacity.dat
cryosweep analyze heat_capacity.dat
cryosweep analyze examples/magnetization_vsm.dat
cryosweep analyze examples/heat_capacity.dat
cryosweep analyze examples/thermal_transport.dat
cryosweep report examples/resistivity_superconductor.dat
cryosweep-gui

The first fits Curie-Weiss and reports θ = −10 K; report prints a Markdown summary instead of JSON; cryosweep-gui opens the desktop app.

Some measurements need inputs the file does not carry. MPMS files hold no molar mass or sample mass, so the analyzer gates rather than guessing — supply them and it proceeds:

cryosweep analyze examples/magnetization_mpms.dat --molar-mass 200 --mass-mg 10

Hall measurements use the same file format as ordinary resistivity — only the wiring differs — so the Hall analyzer is invoked explicitly, with the channel and the sample thickness:

cryosweep hall examples/hall_field_sweeps.dat \
    --hall-channel 1 --thickness 0.5 --thickness-unit mm --long-channel 2

which reports R_H = -2.500e-07 m^3/C.

Built to be driven by a program

Every command prints one JSON object on stdout (logs go to stderr) and sets a meaningful exit code, so cryosweep is usable from a script, a pipeline, or an LLM agent without screen scraping:

Command What it gives you
cryosweep probes available measurement types and what each one needs
cryosweep schema analyze:vsm JSON Schema for the result shape
cryosweep export <file> --out result tidy long-format CSVs, units in the headers
cryosweep run pipeline.json batch

Exit codes distinguish no result from a result you should look at: 0 ok, 10 gated (a required input is missing — the payload names the flag), 11 low confidence, 2 bad input. Codes 10 and 11 still print a full JSON envelope. Output is byte-stable for the same input, so it diffs and caches cleanly. A ready-made agent guide ships in skill/cryosweep/SKILL.md.

Example data

Everything in examples/ is written by tools/make_examples.py.

Eight of the ten files are synthetic, generated by the same builders that produce the test fixtures. The numbers are physically consistent and each file places a feature where it exercises the relevant analyzer — but they are not measurements of any real material.

Two are anonymized subsets of real measurementsmagnetization_vsm_multifield.dat and heat_capacity_multifield.dat — because no synthetic file reproduces what real multi-field data does to the segmentation and window-selection paths. They are decimated, and everything that identified the sample, the operator or the instrument has been replaced: sample material and comment, all five instrument serial numbers, the acquisition date (the absolute Time Stamp column is rebased to zero, since it decodes to the measurement instant), the calibration free text in the Comment column, and the formula weight and sample mass, which are neutral values chosen only so the fits report a plausible moment. The generators carry an assert_no_identity_leak post-condition that refuses to write the file if any token of the source identity survives. The measured shapes are real; the sample metadata is not, and no scientific conclusion should be drawn from any file here.

Regenerate with (the two real-derived files are skipped, and left untouched, on any machine without the private source data):

.venv/bin/python tools/make_examples.py

Tests

QT_QPA_PLATFORM=offscreen .venv/bin/python -m pytest

Run it from the repository root — some tests build fixture paths relative to the working directory and launch the CLI as a subprocess.

The suite ships with synthetic .dat fixtures only. Tests that need real measurement files, or the maintainer's local reference gallery, skip when those are absent, so a fresh clone is green with no data at all. To exercise the optional real-data tests against your own files, create real_data_map.json in the repository root mapping logical keys to paths.

File format and provenance

The .dat files this program reads are produced by Quantum Design instrument software and retain their original ; Copyright …, Quantum Design, Inc. header lines; those are part of the format and are preserved rather than stripped. The format is read, not redistributed.

This project is not affiliated with, endorsed by, or supported by Quantum Design, Inc. "PPMS" and "MPMS" are used only to identify the instruments and file formats cryosweep is compatible with. PPMS is a registered trademark of Quantum Design, Inc.

Licence

cryosweep is released under the PolyForm Noncommercial License 1.0.0.

Free for research and education — universities, public research institutes, national laboratories, government and nonprofit organizations, and individuals, regardless of how the work is funded. Use it, modify it, redistribute it, publish results with it.

Commercial use requires a licence. If you are a company, see COMMERCIAL.md — it is a short email to info@cryosweep.org.

Third-party dependency licences, and what the LGPL requires of the Qt binding, are recorded in THIRD-PARTY-LICENSES.md.

Known issues

Known defects are listed in KNOWN-ISSUES.md. Most are display or ergonomics issues found by inspecting every rendered example, and each of those names the example file that reproduces it; none of them changes a fitted number or an exported value. Two exceptions are called out explicitly there — a temperature-setpoint binning bug in the Hall analyzer that can fabricate a carrier-density point, and the derived-quantity fallback that lets it reach the CSV. Both were found on real data and reproduce on no shipped example.

Versioning

Semantic versioning. While the version is 0.x the interfaces are not frozen: the CLI JSON envelope, the exit codes and the CSV columns may change between releases. Tagging 1.0.0 is what freezes them.

Plot appearance, GUI layout and the internal Python API are not covered by that promise at any version — figures are expected to improve, and doing so is not a breaking change.

Project documents

Contributing

Bug reports, files that break the loader, and pull requests are welcome — see CONTRIBUTING.md. Because the project is dual-licensed, a pull request needs a one-time Contributor License Agreement; you keep your copyright, and a bot walks you through it on your first PR.

Citing

If cryosweep contributes to work you publish, please cite it — see CITATION.cff.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cryosweep-0.5.0.tar.gz (296.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cryosweep-0.5.0-py3-none-any.whl (328.5 kB view details)

Uploaded Python 3

File details

Details for the file cryosweep-0.5.0.tar.gz.

File metadata

  • Download URL: cryosweep-0.5.0.tar.gz
  • Upload date:
  • Size: 296.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cryosweep-0.5.0.tar.gz
Algorithm Hash digest
SHA256 40a2fb3b4606e33e076b9b41ece09eff94be2d8e3296e62fd39f62827f90a7c7
MD5 7384eba944f5b1aa02728aa908ccb413
BLAKE2b-256 31ca0dd7b5ef642f8ad8375e76eaff5d9be6ca4c219f2796c8642fb6f7e2076e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cryosweep-0.5.0.tar.gz:

Publisher: publish.yml on Vova2B/cryosweep

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cryosweep-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: cryosweep-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 328.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cryosweep-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af16db13ffd52eb7d5ec2698221cc4c7b3a3c7dd12279f4b736bc9042963dcde
MD5 d656edf8071f7496e6963eab7f0260c6
BLAKE2b-256 8d57b434ac600fcb7a203295302b2404e4aebb91f7bc2a3ac4214b4228739a39

See more details on using hashes here.

Provenance

The following attestation bundles were made for cryosweep-0.5.0-py3-none-any.whl:

Publisher: publish.yml on Vova2B/cryosweep

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.6.0

2 files

This release

0.5.0 This release

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page