Skip to main content

sweepx

One-line install for the sweep wave-equation engine.

sweepx is a thin umbrella package with no code of its own — installing it pulls in the sweep engine so you can import sweep.

Install

pip install sweepx

This currently pulls in:

Distribution Import name What it does
sweep-solver sweep Wave-equation engine: equations, propagators, operators, FWI/LSRTM
sweep-agent sweep_agent Natural-language control layer — chat/files → sweep, via a local LLM

Growing umbrella. The remaining companion packages (sweep-io, sweep-nn, sweep-opt, sweep-loss, sweep-viz, sweep-preproc, sweep-tasks, sweep-runner) are not published yet. When they ship, they'll be added to sweepx's dependencies — you keep the same pip install sweepx.

Import

After pip install sweepx, import as sweep, not sweepx:

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

Same pattern as pip install scikit-learnimport 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.

Check what's available without triggering a compile:

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sweepx-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sweepx-0.1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file sweepx-0.1.1.tar.gz.

File metadata

  • Download URL: sweepx-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for sweepx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1d3dc70ba997916df41de8d7bf18b5bed1fc1ee05cd095c1b6f0ad24c20d518c
MD5 3774f02c806e54630e39ca30c44e9cb2
BLAKE2b-256 e26567096c6a179c68f03c15af140ccefc4414a3c6514b98e4b6a2734ab7a050

See more details on using hashes here.

File details

Details for the file sweepx-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sweepx-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for sweepx-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a9893501d4e7de262f57e4baeaed73c5651627edb0020e1f0f667e6f78223a5
MD5 00be4feb0095fbd7e4d857b80488f469
BLAKE2b-256 92756f48b434994dc41477eb7215bf1d4bb4ae7d7f506d65dd22daa5e8acfb9f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page