Skip to main content

sweepx

The sweep toolkit: seismic I/O, FWI losses, neural reparameterizations, the YAML task runner and a natural-language agent, on top of the sweep wave-equation engine.

PyPI Python License: MIT Docs

pip install sweepx

That installs the toolkit and the engine it runs on, sweep-solver (import sweep), which ships prebuilt CUDA cores. Optional extras: sweepx[segy], [hdf5], [animate], [agent-ui], [mcp], [vllm], [all]. Installation guide.

What is in it

Module What it does Docs
sweepx.io Seismic I/O — SEG-Y, acquisition geometry, data and model plans. IO
sweepx.loss Misfit functions for FWI — two dozen, from L2 to optimal transport. Loss
sweepx.nn Neural reparameterizations and priors — INR / hash / SIREN encoders, TV and diffusion priors. NN
sweepx.opt FWI optimizers — L-BFGS, truncated Newton / Gauss-Newton, Adam, Shampoo / SOAP, preconditioners and bound parameterizations. Opt
sweepx.tasks Production FWI / LSRTM / RTM runner — typed YAML task specs, a CLI, multi-GPU runs, field-data pipelines, preprocessing and plotting. Tasks
sweepx.agent Natural-language control layer — chat + files → validated runs, through a local LLM (Ollama / vLLM). Agent

The modules are layered: agent → tasks → io / loss / nn / opt. A module imports only from the layers below it, and the four libraries neither import each other nor the engine (checked in CI with import-linter).

Quick start

sweep-tasks run examples/tasks/synthetic/09_forward_constant_box.yaml   # or: sweepx tasks run …
import sweep                         # the engine: equations, propagators
from sweepx.loss import EnvelopeLoss # the toolkit, one module at a time
from sweepx.tasks import load_task, TaskRunner

…or in plain language, via the agent (needs a local LLM):

sweep-agent chat                   # or: sweepx agent chat
>>> load the Marmousi benchmark model and run a forward — show the shot gather

Development

git clone https://github.com/DeepWave-KAUST/sweepx.git && cd sweepx
pip install -e ".[dev]"
pytest tests/loss                  # tests/<module>/ for each module
lint-imports                       # the layering contract

License

MIT — see LICENSE.

Metadata

Release files for sweepx 0.4.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 sweepx 0.4.0
File Size Uploaded Provenance Actions
sweepx-0.4.0.tar.gz 678.7 kB Without provenance Details for sweepx-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sweepx 0.4.0
File Interpreter ABI Platform Actions
sweepx-0.4.0-py3-none-any.whl Python 3 none any Details for sweepx-0.4.0-py3-none-any.whl

Total release size: 1.5 MB

Release files / sweepx-0.4.0.tar.gz

Download URL sweepx-0.4.0.tar.gz
Size 678.7 kB
Tags Source
SHA-256 checksum
How to use checksums
39b346e423ebc1c2adc79b52b21314715609762aca69b9b50b1d97b0de7582e1
BLAKE2b-256 checksum
How to use checksums
a7d86f34e163f1c93e80da7784807419c31a3e0ef5f956d34f2fd95d770bf467
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.5

Release files / sweepx-0.4.0-py3-none-any.whl

Download URL sweepx-0.4.0-py3-none-any.whl
Size 787.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da0cf530c2cfa98988516dd0338f64c2f6115ca54d5e746454c91c9ca1209f20
BLAKE2b-256 checksum
How to use checksums
c32ba4d14c3b6b4d1128b760c4b3301b8104793bf32c1c0cf9a432f2d3a2c15b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.5

Security for sweepx 0.4.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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