Skip to main content

Acoustics toolbox for time domain acoustic and ultrasound simulations in complex and tissue-realistic media.

Project description

k-Wave-python

This project is a Python interface to the k-Wave simulation binaries.

The documentation for this Python interface is compiled in a Read the Docs page here

Installation

pip install k-wave-python

Currently, we are looking for beta testers on Windows. If you would like to get involved, open an issue letting us know, or message us on the k-Wave-python Telegram chat.

Getting started

After installation, run the B-mode reconstruction example in the examples directory of the repository:

Reuirements

git clone https://github.com/waltsims/k-wave-python
pip install -r example_requirements.txt
python3 examples/bmode_reconstruction_example.py

This example file steps through the process of:

  1. Generating a simulation medium
  2. Configuring a transducer
  3. Running the simulation
  4. Reconstructing the simulation

This example expects an NVIDIA GPU by default to simulate with k-Wave.

To test the reconstruction on a machine without a GPU, set RUN_SIMULATION on line 14 of bmode_reconstruction_example.py to False and the exmaple will run with pre-computed data.

Development

If you're enjoying k-Wave-python and want to contribute, development instructions can be found here.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

k_Wave_python-0.1.0-py3-none-any.whl (288.2 MB view details)

Uploaded Python 3

File details

Details for the file k_Wave_python-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for k_Wave_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b10891f5437839b972178b186235ae49da22458a5e2f4348d851656def017873
MD5 d54113cc0ac0959e5c99e63300132e4b
BLAKE2b-256 61ddb29bcfd9767435441c20195d423598dc9de02478585b7df701e6f0ce7340

See more details on using hashes here.

Provenance

Supported by

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