An open file format for parametric simulation studies,
with libraries for Python, MATLAB, Julia, C++ and C.
Gamut is a file format for parametric simulation studies: the hundreds or thousands of CFD or FEA runs behind a design sweep, an aerodynamic database or a surrogate model. One file holds the run table, each run's inputs, results and status, and, when the runs have a mesh, the mesh and every field on it, all with units. Python, MATLAB, Julia and C++ read and write it with the same calls. Files are HDF5 laid out as netCDF-4, so h5py, xarray and the netCDF tools open them too, and a published specification says what every array in them means.
Example
Nine runs of potential flow past a cylinder on one mesh: eight written as
a sweep, a ninth added after reopening the file, then the pressure at one
node read back from every run. points, cells and solve stand for
your mesh and your solver, and the complete programs are in
examples/.
Python
with gamut.create("cylinder.gamut", writer="example sweep", mesh="shared", per="fixed",
coordinates={"units": "m", "axes": 2},
parameters={"gamma": {"units": "m2 s-1", "role": "design"}},
fields={"cp": {"units": "1", "at": "node"}}) as study:
study.set_mesh(points, cells)
for gamma in np.linspace(0.0, 3.5, 8):
study.add_run({"gamma": gamma}, fields={"cp": solve(gamma)})
with gamut.open("cylinder.gamut", mode="a") as study:
study.add_run({"gamma": 4.0}, fields={"cp": solve(4.0)})
with gamut.open("cylinder.gamut") as study:
cp = study.get_field("cp", nodes=[12]) # runs x nodes
MATLAB
study = gamut.create('cylinder.gamut', 'writer', 'example sweep', 'mesh', 'shared', 'per', 'fixed', ...
'coordinates', struct('units', 'm', 'axes', 2), ...
'parameters', struct('gamma', struct('units', 'm2 s-1', 'role', 'design')), ...
'fields', struct('cp', struct('units', '1', 'at', 'node')));
study.setMesh(points, cells);
for gamma = linspace(0, 3.5, 8)
study.addRun(struct('gamma', gamma), 'fields', struct('cp', solve(gamma)));
end
study.close();
study = gamut.open('cylinder.gamut', 'mode', 'a');
study.addRun(struct('gamma', 4), 'fields', struct('cp', solve(4)));
study.close();
study = gamut.open('cylinder.gamut');
cp = study.getField('cp', 'nodes', 13); % runs x nodes, from 1
study.close();
Julia
Gamut.create("cylinder.gamut"; writer="example sweep", mesh="shared", per="fixed",
coordinates=(units="m", axes=2),
parameters=Dict("gamma" => (units="m2 s-1", role="design")),
fields=Dict("cp" => (units="1", at="node"))) do study
Gamut.set_mesh!(study; points, cells)
for gamma in range(0, 3.5; length=8)
Gamut.add_run!(study, Dict("gamma" => gamma); fields=Dict("cp" => solve(gamma)))
end
end
Gamut.open("cylinder.gamut"; mode="a") do study
Gamut.add_run!(study, Dict("gamma" => 4.0); fields=Dict("cp" => solve(4.0)))
end
cp = Gamut.open("cylinder.gamut") do study
Gamut.get_field(study, "cp"; nodes=[13]) # runs × nodes, from 1
end
C++
auto study = gamut::create("cylinder.gamut", "example sweep", "shared", "fixed");
study.declare_coordinates("m", 2);
study.declare_parameter("gamma", "design", "m2 s-1");
study.declare_field("cp", "node", "1");
study.set_mesh(points, cells);
for (double gamma = 0.0; gamma < 3.75; gamma += 0.5)
study.add_run({{"gamma", gamma}}, {{"cp", solve(gamma)}});
study.close();
study = gamut::open("cylinder.gamut", "a");
study.add_run({{"gamma", 4.0}}, {{"cp", solve(4.0)}});
study.close();
study = gamut::open("cylinder.gamut");
auto cp = study.get_field("cp", gamut::all, {12}); // runs x nodes
All four print the same values:
cp at the top of the cylinder, run by run: -3.00 -2.69 -2.39 -2.10 -1.83 -1.57 -1.32 -1.08 -0.86
MATLAB and Julia count positions from 1, so node 12 in Python and C++ is node 13 in MATLAB and Julia.
What you can do with it
| Use one file everywhere | Python, MATLAB, Julia, C++ and C call one core, so a query returns the same values in each, and each reads what another wrote. |
| Read only what you need | Choose runs by condition (mach > 0.7 and status == converged) and nodes by zone. On a shared mesh, one region of every run or one node across thousands of runs is a single read, and Python can convert values to the units you ask for (reading parts). |
| Train models on it | Each field on a shared mesh is one block of runs × nodes (or cells). Labels record status, fidelity or solver, a split says which rows are for training and which for testing, and a file can name the group a fair test must hold out whole. Standard deviations, quantiles and derivatives are stored beside the results they describe (run tables, uncertainty). |
| Share fitted models | A model is a file in the same format with no runs and no code inside. Evaluating it on new inputs gives an ordinary study; a model type of your own is registered by the software that defines it (models). |
| Hold tables, families and time series | A table of runs with no mesh, one mesh for every run, one geometry per member of a family of shapes on one topology, a mesh per run, or transient runs with a row per saved step (families, time series). |
| Check what you receive | Writers require units on parameters, results, constants and coordinates, and gamut validate checks the 34 numbered rules of the specification. A corpus of 64 valid, broken and hostile files runs in CI through the Python, MATLAB and Julia libraries and the C interface under them, and readers check sizes before allocating memory and never follow links (files from outside). |
Performance
Gamut is about the size of netCDF-4 and Zarr, a little smaller than VTKHDF and HDF5 written a run at a time, and a sixth of the VTK files. Choosing runs by condition and reading a result of each takes about a millisecond, as fast as a Parquet file of the run table alone. Opening a file costs Gamut about 0.9 ms, so HDF5 and VTKHDF read straight with h5py fetch one small run faster, and uncompressed NumPy arrays, at 2.3 times the size, read fastest of all. Gamut's chunks are laid out for reading whole runs, so one node across every run takes 127 ms, slower than Zarr or netCDF-4. HDF5 decompresses on one core; with threads turned on, Gamut fetches the compressed chunks of a whole-run or contiguous read through HDF5 and decompresses them in parallel, and four threads bring that read to 39 ms. On the AirfRANS study queried in the picture at the top, with meshes of about 176,000 nodes, one run reads in 15 ms against 124 ms from its VTK file.
Apple M3, 8 GB, macOS 27, files in the operating system's cache; medians of five reads, each opening the file. The benchmarks page has every number, the method and the scripts to repeat it.
Install
| Language | Install |
|---|---|
| Python 3.10 or later | pip install gamut-format |
| MATLAB | build_mex(core) once in the matlab folder of a checkout |
| Julia 1.9 or later | Pkg.add(url="https://github.com/bijective-systems-org/gamut", subdir="julia") |
| C++ and C | CMake build and install, then find_package(gamut); include gamut/gamut.hpp (C++17) or gamut/gamut.h (C) |
The Python wheels for macOS, Linux and Windows contain the core with HDF5
linked in. MATLAB and Julia use the same core: the wheel's
(gamut.library_path() prints where it is) or one built with CMake.
Installing has the details for each language.
Documentation
The guide has one short page per concept, each
running one script from examples/. The
specification defines the format for anyone writing another
implementation, and how it compares sets Gamut
beside VTK, CGNS, Exodus, netCDF-CF and Zarr.
Before version 1 the format was called mestra. Its files (mestra/0) are
refused with their version named; its 0.1 releases stay on PyPI under that
name.
License
Apache 2.0. Made by Bijective Systems. If you use Gamut in published work, please cite it (CITATION.cff).
Metadata
Release files for gamut-format 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gamut_format-1.0.0.tar.gz | 214.1 kB | With provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| gamut_format-1.0.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| gamut_format-1.0.0-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details |
| gamut_format-1.0.0-py3-none-macosx_11_0_x86_64.whl | Python 3 | none | macOS 11.0+ x86-64 | Details |
| gamut_format-1.0.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
Total release size: 7.6 MB
Release files / gamut_format-1.0.0.tar.gz
| Download URL | gamut_format-1.0.0.tar.gz |
|---|---|
| Size | 214.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89f58f5a6ed22063c06a139bf396bdee85195f90bfbb3a9adf93498d5a25f9ab
|
|
BLAKE2b-256 checksum How to use checksums |
9e9f827e8826a3b14c425d04441bfd56199d16a599632d085ceb325319642587
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / gamut_format-1.0.0-py3-none-win_amd64.whl
| Download URL | gamut_format-1.0.0-py3-none-win_amd64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
db972b75cff1121cdc7f30627a6617da79d119f73a19cc015ec2d63475c2e2ff
|
|
BLAKE2b-256 checksum How to use checksums |
9747ce674be26219fbd8f7fae4e60738d9e9a13514f0efbaf5b1c0b195c1a585
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / gamut_format-1.0.0-py3-none-manylinux_2_28_x86_64.whl
| Download URL | gamut_format-1.0.0-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
b8134fe2eccfecbe85dccf972e7b0b3c3ed62bd3dd2e1517821b4d73ecae8600
|
|
BLAKE2b-256 checksum How to use checksums |
5ee1e860b7fcf5a151b47d25e0d1257bfcc62d0a65d6ffb44408f7371cab60e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / gamut_format-1.0.0-py3-none-macosx_11_0_x86_64.whl
| Download URL | gamut_format-1.0.0-py3-none-macosx_11_0_x86_64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | Python 3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
1ec62f03e2eeb895cce787e5d72a34df2a83bee578ff6c01405ff111ee9478bc
|
|
BLAKE2b-256 checksum How to use checksums |
aeea9744379eaf89110b00e890dbc823d91fc18a4d5c5335efaec8f64d38feb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / gamut_format-1.0.0-py3-none-macosx_11_0_arm64.whl
| Download URL | gamut_format-1.0.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
67b0c90244891110b87a000fd3eef9e930dde235afe15f21b5990fc579638a47
|
|
BLAKE2b-256 checksum How to use checksums |
ef6a948d6387f07095a9d00a3400e3dc2a6f906f9a87f95636f88ad2b147239f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logSecurity for gamut-format 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 5 files in this release have been uploaded with provenance metadata.
Attestation for gamut_format-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.