Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.3.4 instead.
Reason given by maintainers: dependency pin held sweep-solver back to 0.1.0; use 0.2.1

sweepx

The sweep seismic wave-equation ecosystem — one install, then import sweep.

PyPI Python License: MIT

sweepx is the umbrella install for sweep — a GPU seismic wave-equation engine (forward modelling, RTM, FWI/LSRTM) — and its companion packages. It carries no code of its own: pip install sweepx pulls in the engine and the published companions so you can import sweep and go.

pip install sweepx

The ecosystem

Every piece is a separate, independently-installable package (the same layout as the PyLops family). sweepx bundles the published ones; you can also pip install any single package on its own.

Published — pulled in by sweepx

Package import What it does
sweep-solver sweep Wave-equation engine: equations (acoustic / elastic / VTI / TTI / VRZ / SEM), propagators (torch / JAX / CUDA impl='c'), operators, boundary-saving, and FWI / LSRTM / RTM building blocks.
sweep-agent sweep_agent Natural-language control layer — chat + files → sweep, through a local LLM (Ollama / vLLM). Runs forward modelling (acoustic and elastic), loads benchmark models, plots — all on the base install. pip install "sweep-agent[ui]" adds a web UI.

Companions — not on PyPI yet

Shipping as they mature; when a companion is published it is added to sweepx's dependencies, so you keep the same pip install sweepx.

Package What it does
sweep-tasks Production FWI / LSRTM runner — spec schemas, YAML configs, losses, optimizers, multi-GPU, IO.
sweep-loss Misfit / loss functions.
sweep-nn Neural reparameterizations (INR / hash / SIREN encoders).
sweep-tomo First-arrival traveltime tomography (eikonal + SIRT / FATT).
(planned) sweep-io, sweep-viz, sweep-preproc, sweep-opt.

Quick start

Drive the engine directly:

import sweep
from sweep.propagator.torch import PropTorch     # PyTorch propagator
from sweep import equations, propagator          # native submodules

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

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

Import name

After pip install sweepx, import as sweep, not sweepx — same pattern as pip install scikit-learn → import sklearn. The import name sweep was already taken on PyPI, so the installable is named sweepx.

CUDA backend

sweep's GPU backend (impl='c') is JIT-compiled against your own PyTorch on first use — so a single wheel works with any torch version and any Python 3, with no prebuilt CUDA/torch/Python matrix. It needs a CUDA GPU and nvcc >= 12.4 (a system toolkit, module load cuda, or conda install -c nvidia cuda-toolkit):

import sweep
sweep.precompile()   # optional: build the CUDA backend now (~3-5 min, then cached)

Drop precompile() and the compile happens automatically on first use of impl='c', cached thereafter in ~/.cache/torch_extensions. The pure-Python eager / JAX backends need no nvcc.

import sweep
print(sweep.is_torch_binding_available())          # torch + CUDA GPU + nvcc present?
print(sweep.backend.torch.binding.diagnostics())   # usable / reason / cuda_home / built

License

MIT — see LICENSE.

Metadata

Release files for sweepx 0.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 sweepx 0.2.0
File Size Uploaded
sweepx-0.2.0.tar.gz 4.5 kB Details

Built distribution (wheel)

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

Total release size: 8.9 kB

Release files / sweepx-0.2.0.tar.gz

Download URL sweepx-0.2.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ffbbbca5f23d9ba605f4e9b4e05b6613354273f563dde6908a4f471bc89240e2
BLAKE2b-256 checksum
How to use checksums
7c59dcafce00c9e88842bfe70f32a05236b20f5ff50a1018a4e809b4338fc423
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.2.0-py3-none-any.whl

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

Release history Release notifications | RSS feed

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release 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