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 …
sweep-tasks init fwi -o my_fwi.yaml    # an annotated FWI template (any task type) ...
sweep-tasks run my_fwi.yaml            # ... that runs as written: Marmousi, nothing to download
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.1

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.1
File Size Uploaded Provenance Actions
sweepx-0.4.1.tar.gz 698.3 kB Without provenance Details for sweepx-0.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.5 MB

Release files / sweepx-0.4.1.tar.gz

Download URL sweepx-0.4.1.tar.gz
Size 698.3 kB
Tags Source
SHA-256 checksum
How to use checksums
95c255aeee58705a11b6b6c32c122853dc7c7dd7099e8ef02fc2ceba8726133e
BLAKE2b-256 checksum
How to use checksums
e9d70e4c53ffc45256a38028b619bc38e1c0a9f338c7d689b07fc94d7cec517f
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.1-py3-none-any.whl

Download URL sweepx-0.4.1-py3-none-any.whl
Size 808.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb6ec3c768747bd0bee5ee629b608a4eb184d7181bb1bd5c959f68ee4b2376c9
BLAKE2b-256 checksum
How to use checksums
635fdbcf1027f175939247a4de583da48bc8d7f878780e1cf51a75da2e704ab4
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.1

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