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 hashes)

Uploaded Python 3

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