Skip to main content

fathom

fathom is the SDK of the Acoustic Workbench, a Python application and library for sonar signal work. It generates waveforms, analyzes signals in the time and frequency domains, and reads and writes signal files. The first user is a software-defined sonar prototype on a Red Pitaya STEMlab 125-14 (two channels). The data model accepts N channels.

This is v1.0: roadmap phases M0 · Core and CLI, M1 · Channel models and Jupyter, M2 · MCP server, M4 · Signal Studio, M5 · Channel Studio and M6 · Release v1.0. Phase M3 (streaming transports and hardware) comes in v1.1 (see docs/roadmap.md). From v1.0, the public API follows semantic versioning.

Install

The desktop installers for macOS arm64 and Linux x64 are on the GitHub Releases page. Each holds Python, the studios, JupyterLab and all extras, with menu shortcuts and a Jupyter kernel. On Windows, use pip. See docs/install.md.

pip install fathom-acoustics            # core and CLI
pip install "fathom-acoustics[jupyter]" # plus the Jupyter extension and widgets
pip install "fathom-acoustics[mcp]"     # plus the MCP server
pip install "fathom-acoustics[gui]"     # plus Signal Studio and Channel Studio
pip install "fathom-acoustics[all]"     # every extra

For development:

uv sync --group dev
uv run pytest
uv run pytest -m gate tests/test_gui_gate.py -s   # the M4 performance gate

The GUI tests run headless with the Qt offscreen platform. On Linux, Qt needs some system libraries, for example sudo apt-get install libegl1 libxkbcommon0 libfontconfig1 libdbus-1-3 on Ubuntu.

Python 3.12 or later is necessary.

Use

fathom gen lfm --f0 8k --f1 12k --dur 10ms --fs 500k -o ping.wav
fathom analyze psd ping.wav --nfft 4096 --plot psd.png --json
fathom convert capture.tdms capture.sigmf-meta
fathom gen hfm --f0 8k --f1 12k --dur 20ms --fs 200k -o - | fathom analyze ambiguity - --plot amb.png
fathom model run examples/models/harbor_multipath.yaml --in ping_lfm=ping.wav -o rx.sigmf-meta
fathom model sweep examples/models/harbor_multipath.yaml --in ping.wav --param drive.gain_db=-27:4:-15 --trials 100 -o roc.nc
fathom serve --project ./tank_tests
fathom mcp --project ./tank_tests   # MCP server on stdio, for a language model client
fathom studio --project ./tank_tests  # Signal Studio on the same workspace
fathom model edit examples/models/harbor_multipath.yaml --project ./tank_tests  # Channel Studio
import fathom.signals as gen
from fathom import analysis, io

ping = gen.lfm(8e3, 12e3, 10e-3, 500e3, taper="tukey", amplitude=100.0, units="Pa")
print(analysis.measure(ping).to_dict())
io.write(ping, "ping.sigmf-meta")
from fathom.models import ChannelModel

model = ChannelModel.load("examples/models/harbor_multipath.yaml")
rx = model.run(ping)  # batch
rx2 = model.run(ping, mode="stream", frame_size=1024)  # stream: same output
ds = model.sweep({"drive.gain_db": [-27, -23, -19]}, ping, trials=100)  # xarray.Dataset
%load_ext fathom
%fathom attach ./tank_tests     # workspace objects become notebook variables

What M6 adds

Area Content
Installers Conda-based installers built with constructor: macOS arm64 .pkg (Developer ID, notarized) and Linux x64 .sh (PKG-006, PKG-007). Python 3.13, fathom, JupyterLab and all extras; shortcuts for both studios and JupyterLab; a fathom kernel
Conda package installer/recipe (rattler-build) installs the wheel of uv build
Release The installers workflow smoke-tests each installer on a clean runner (PKG-008); PyPI waits for it; the GitHub Release holds the installers, checksums, SBOM and the docs site (PKG-009); a final release publishes the docs to GitHub Pages
Versioning The public API follows semantic versioning; tests/public_api.json and tests/test_architecture.py stop a breaking change (SDK-003)
Docs Install, Channel Studio, Releases and versioning, Changelog, and a generated Requirement verification page; the block catalog and the API reference

What M5 adds

Area Content
Channel Studio fathom model edit and fathom.gui.run_channel_studio: a node editor for channel models. Add, connect, bypass, rename and delete blocks; probe any edge; undo and redo (CHN-001, CHN-003, CHN-004)
Edge validation Each rate, representation and channel-count error shows on the edge that causes it, and each edge shows its stream (CHN-005)
Runs Batch, stream and sweep runs; outputs and probes go to the workspace and to the views of Signal Studio (CHN-003, CHN-006, CHN-010)
Session Each action and each undo is a public SDK call; the script repeats the session (CORE-002)
File The canvas saves to the YAML model file; the layout key holds the positions and the probe marks (CHN-002)
SDK ChannelModel.inspect, ModelReport, Connection, place, rename, move, mark_probe, probe_marks, auto_layout, set_medium; fathom.models.sweep_values; fathom.analysis.frame_psd; fathom.theme.node_palette
Gate tests/test_requirements.py: every P1 requirement of the spec has a test, except the STR requirements of M3 (98 of 98)

What M4 adds

Area Content
Signal Studio fathom studio and fathom.gui.run_studio: a PySide6 and pyqtgraph desktop window on the workspace of a project. It connects to the workspace service, or starts one, and shows a ws.put() from a notebook in less than 1 s (JUP-005)
Generators Every P1 family from a parameter form that comes from the SDK schemas (SIG-001); SI input; the common options of SIG-002; bits, symbols and a custom constellation for the modulator (SIG-009); a live preview strip
Views Time (waveform, envelope, instantaneous phase and frequency), spectrum (FFT, Welch PSD in dB re 1 µPa²/Hz or dBFS/Hz, SIG-005), spectrogram, correlation (PSL, ISL, matched filter), ambiguity (wideband, narrowband for comparison, SIG-006), constellation and eye, live scroll mode (SIG-011); two or more signals in each view (SIG-008); time and frequency cursors with deltas (SIG-010)
Measurements Every SIG-007 metric for the current signal or the selected time span
Session Each action records its SDK call; Copy session as Python gives a script that repeats the session (CORE-002)
Gate SIG-003: previews update in less than 200 ms at 10⁶ samples. SIG-004: a 10⁸-sample record pans and zooms with no visible lag (min/max pyramids). tests/test_gui_gate.py runs on three operating systems
SDK fathom.schema (function schemas and catalogs, shared by the MCP tools and the forms); fathom.plotting.MinMaxPyramid; fathom.stream.replay and RingBuffer; fathom.analysis.StreamingSpectrogram; spectrogram(max_frames=...); faster multitone, schroeder_multisine and modulate
Theme fathom.theme.qt_stylesheet, qt_palette_roles, plot_palette, colormap_lut and series_styles: the studio styles from the same tokens (UI-002)
Docs Signal Studio page and API reference

What M2 adds

Area Content
MCP server fathom mcp on stdio (MCP-001) and streamable HTTP with a bearer token (MCP-009); fathom.mcp.FathomMCP in Python
Tools list_workspace, describe_signal, generate_waveform, import_file, export_file, edit_channel_model, run_channel_model, run_sweep, analyze, compare_signals, job_status; start_stream and stop_stream only with --allow-hardware (MCP-006)
Schemas Generated from the SDK type hints and docstrings (MCP-008): every generator, analysis function and file reader and writer
Resources Block catalog with parameter schemas (MCP-004), generator, analysis and format schemas, the model format, and each workspace object
Data rule Names, metadata, numeric summaries and PNG plots, never sample arrays (MCP-002, MCP-003)
Safety Paths stay in the project (MCP-005); no code-running blocks; calls longer than 10 s become background jobs (MCP-007)
SDK fathom.analysis.compare, fathom.plotting.plot_sweep, progress callbacks for model runs, fathom.models.named_metric; sweeps no longer write a sink revision per run
Docs MCP server page and a generated tool reference

What M1 adds

Area Content
Channel models ChannelModel: a DAG of blocks with typed ports; YAML files with a schema version and migrations; checks of rate, representation and channel count on each edge; bypass and probes; model hash in each output's provenance
Engine Batch and stream modes through one block interface (outputs agree to 10⁻⁹); latency compensation and tails; counter-based random numbers, so random output does not change with the frame size; sweeps with seeded trials to an xarray.Dataset
Block library All P1 blocks: sources and sinks, probe; gain and loss curves; spreading; Thorp, Francois-Garrison and Ainslie-McColm absorption; integer, fractional and time-varying delay; Doppler time scale; tapped delay line and image method; surface and Rayleigh bottom reflection; measured impulse response; AWGN, colored and Wenz noise; TVR and OCV transducers; clipping and polynomial distortion; amplifier, ADC, DAC, clock offset, jitter; sum, split, mux, demux, resample, filter, custom Python blocks
Workspace Project directory (YAML plus Zarr arrays, read memory-mapped); workspace service on localhost with a token; clients with change events; fathom serve
Jupyter %load_ext fathom, %fathom attach/push/pull; workspace objects as variables; HTML summaries; interactive time, PSD and spectrogram views for JupyterLab and VS Code; fathom lab
CLI fathom model run, sweep, check, blocks; fathom serve; fathom lab
Examples Five notebooks that run in CI from recorded data, on three operating systems

What M0 contains

Area Content
Data model Signal: channel-major samples, fs, timeline, passband/baseband, units, per-channel calibration (counts → V → Pa), geometry, medium (water or air), annotations, provenance; lossless xarray conversion; memory-mapped large records
Generators All P1 families: CW and gated CW, pulse trains with stagger, multi-tone, Schroeder multisine; LFM, HFM, exponential sweep; Barker, MLS; impulse, Gaussian pulse, Ricker, sinc; white, pink, red, band-limited and PSD-shaped noise; OOK, BPSK, QPSK, M-PSK, FSK, MFSK with RRC shaping; AM, FM, PM; NumPy expressions; file import
Analysis Spectrum, Welch PSD, spectrogram; envelope, instantaneous phase and frequency; matched filter, autocorrelation, PSL and ISL; wideband and narrowband ambiguity; CFAR; GCC-PHAT; delay-and-sum beamforming; H1, H2, coherence; the full measurement set
File I/O SigMF (with a fathom: extension namespace), WAV/RF64, FLAC, AIFF, TDMS, HDF5, NetCDF4, Zarr, MAT v5 and v7.3, npy/npz, raw binary, CSV; PNG/SVG/PDF plots
Streams Framed stream protocol (FSP) v1: Python reference parser and C header
CLI gen, analyze, convert, info, plot, formats; --json; SI suffixes; - for stdin and stdout; exit codes 0/1/2
Visual design SIGE dark theme tokens in one module; matplotlib style; perceptually uniform colormap; Paper print variant
CI and release Ruff, mypy strict, tests on 3 OSes × 3 Python versions, coverage ≥ 85 %, docs build, benchmarks against the last release; tag-driven release with trusted publishing

Documentation

Build the docs with uv run mkdocs serve. The pages are in docs/. The software spec, with the requirement IDs that the code and tests cite, is in docs/spec.md.

License

MIT. See LICENSE.

Metadata

Release files for fathom-acoustics 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fathom-acoustics 1.2.0
File Size Uploaded Provenance Actions
fathom_acoustics-1.2.0.tar.gz 1.1 MB With provenance Details for fathom_acoustics-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fathom-acoustics 1.2.0
File Interpreter ABI Platform Actions
fathom_acoustics-1.2.0-py3-none-any.whl Python 3 none any Details for fathom_acoustics-1.2.0-py3-none-any.whl

Total release size: 1.6 MB

Release files / fathom_acoustics-1.2.0.tar.gz

Download URL fathom_acoustics-1.2.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
229aacef93f80708d1b75d2071804f0edfa162885a3ce690c8c5df0ea1f6ab5e
BLAKE2b-256 checksum
How to use checksums
d3c98fa491001ce9729400ee538a950967f37bc504d9541df287f50e9291f484
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / fathom_acoustics-1.2.0-py3-none-any.whl

Download URL fathom_acoustics-1.2.0-py3-none-any.whl
Size 497.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c495213e114905b92484452df46ca2a38112d2c05d68659c3b497977b352a4c7
BLAKE2b-256 checksum
How to use checksums
c495dd67a1a58fd95ac68e30e86f09bd39091988b41cab86cb5256013824db2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Security for fathom-acoustics 1.2.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fathom_acoustics-1.2.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 Nov 18, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files Full provenance

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