Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions README.md → docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ This project is a Python implementation of most of the [MATLAB toolbox k-Wave](h

With this project, we hope to increase accessibility and reproducablitiy of [k-Wave](http://www.k-wave.org/) simulations for medical imaging, algorithmic prototyping and testing. Many tools and methods of [k-Wave](http://www.k-wave.org/) can be found here, but this project has and will continue to diverge from the original [k-Wave](http://www.k-wave.org/) APIs in order to leverage pythonic practices.

## Documentation

The documentation for k-wave-python can be found [here](http://waltersimson.com/k-wave-python/)

## Installation
To install the most recent build of k-Wave-python from PyPI, run:
Expand All @@ -20,7 +17,7 @@ Currently, we are looking for beta testers on Windows.


## Getting started
![](docs/images/example_bmode.png)
![](_static/example_bmode.png)

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

Expand All @@ -42,18 +39,25 @@ This example expects an NVIDIA GPU by default to simulate with k-Wave.

To test the reconstruction on a machine with a GPU,
set `RUN_SIMULATION` [on line 14 of `bmode_reconstruction_example.py`](https://github.com/waltsims/k-wave-python/blob/master/examples/bmode_reconstruction_example.py#L18)
to `True` and the exmaple will run without the pre-computed data.
to `True` and the example will run without the pre-computed data.

## Development

If you're enjoying k-Wave-python and want to contribute, development instructions can be found [here](https://waltersimson.com/k-wave-python/development/development_environment.html).
If you're enjoying k-Wave-python and want to contribute, development instructions can be
found [here](https://waltersimson.com/k-wave-python/development/development_environment.html).

## Related Projects

1. [`k-Wave`](https://github.com/ucl-bug/k-wave): A MATLAB toolbox for the time-domain simulation of acoustic wave fields.
2. [`j-wave`](https://github.com/ucl-bug/jwave): Differentiable acoustic simulations in JAX.
3. [`ADSeismic.jl`](https://github.com/kailaix/ADSeismic.jl): a finite difference acoustic simulator with support for AD and JIT compilation in Julia.
4. [`stride`](https://github.com/trustimaging/stride): a general optimisation framework for medical ultrasound tomography.
1. [k-Wave](https://github.com/ucl-bug/k-wave): A MATLAB toolbox for the time-domain simulation of acoustic wave fields.
2. [j-wave](https://github.com/ucl-bug/jwave): Differentiable acoustic simulations in JAX.
3. [ADSeismic.jl](https://github.com/kailaix/ADSeismic.jl): a finite difference acoustic simulator with support for AD
and JIT compilation in Julia.
4. [stride](https://github.com/trustimaging/stride): a general optimisation framework for medical ultrasound tomography.

## Documentation

The documentation for k-wave-python can be found [here](http://waltersimson.com/k-wave-python/)

## Contact

e-mail [walter.simson@tum.de](mailto:walter.simson@tum.de).
File renamed without changes
5 changes: 0 additions & 5 deletions docs/array.rst

This file was deleted.

74 changes: 31 additions & 43 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,69 +1,57 @@
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.

import os
import sys

sys.path.insert(0, os.path.abspath('..'))

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'k-Wave-python'
copyright = '2021, Walter Simson, Farid Yagubbayli'
project = 'k-wave-python'
copyright = '2022, Walter Simson, Farid Yagubbayli'
author = 'Walter Simson, Farid Yagubbayli'
version = '0.1.0'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.githubpages',
'sphinx_toolbox.code',
'sphinx_copybutton',
'sphinx.ext.coverage',
'sphinx.ext.napoleon',
'sphinx.ext.viewcode'
'sphinx.ext.viewcode',
"m2r2"
]

# Add any paths that contain templates here, relative to this directory.
source_suffix = [".rst", ".md"]
templates_path = ['_templates']
exclude_patterns = ['README.md', '_build', 'Thumbs.db', '.DS_Store']

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
language = 'en'

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'furo'
html_theme_options = {
"source_repository": "https://github.com/waltsims/k-wave-python",
"source_branch": "master",
"source_directory": "docs/",
}
html_static_path = ['_static']

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
# -- Options for todo extension ----------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/extensions/todo.html#configuration

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['']
todo_include_todos = True

autodoc_default_options = {
'member-order': 'groupwise',
'undoc-members': True
}
# -- Options for autodoc ----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#configuration

html_context = {
"display_github": True, # Integrate GitHub
"github_user": "waltsims", # Username
"github_repo": "k-wave-python", # Repo name
"github_version": "master", # Version
"conf_py_path": "/docs/", # Path in the checkout to the docs root
}
# Automatically extract typehints when specified and place them in
# descriptions of the relevant function/method.
autodoc_typehints = "description"

# Don't show class signature with the class' name.
autodoc_class_signature = "separated"
18 changes: 0 additions & 18 deletions docs/examples/bmode.rst

This file was deleted.

10 changes: 0 additions & 10 deletions docs/get_started/installation.rst

This file was deleted.

61 changes: 29 additions & 32 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,47 @@ Welcome to k-Wave-python's documentation!

k-Wave is an open source acoustics toolbox for MATLAB and C++ developed by Bradley Treeby and Ben Cox (University College London) and Jiri Jaros (Brno University of Technology). The software is designed for time domain acoustic and ultrasound simulations in complex and tissue-realistic media. The simulation functions are based on the k-space pseudospectral method and are both fast and easy to use.

.. mdinclude:: README.md
:start-line: 5
:end-line: -7

.. toctree::
:maxdepth: 2
:caption: Getting Started
:hidden:

get_started/installation
get_started/contrib
get_started/license

.. toctree::
:maxdepth: 2
:caption: Examples

examples/bmode


.. toctree::
:maxdepth: 3
:caption: Base Modules

kgrid
kmedium
ksensor
ksource
kspace_fo
ksimulation

.. toctree::
:maxdepth: 2
:caption: Helper Modules

simopt
array
recorder

.. toctree::
:maxdepth: 2
:caption: Development
:hidden:

development/development_environment

Indices and tables
==================
.. toctree::
:caption: kwave
:titlesonly:
:maxdepth: 4
:hidden:

kwave.data
kwave.enums
kwave.executor
kwave.kWaveSimulation
kwave.kgrid
kwave.kmedium
kwave.ksensor
kwave.ksource
kwave.kspaceFirstOrder
kwave.kspaceFirstOrder2D
kwave.kspaceFirstOrder3D
kwave.kspaceFirstOrderAS
kwave.ktransducer
kwave.options
kwave.recorder
kwave.utils
kwave.kWaveSimulation_helper
kwave.reconstruction

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
6 changes: 0 additions & 6 deletions docs/kgrid.rst

This file was deleted.

4 changes: 0 additions & 4 deletions docs/kmedium.rst

This file was deleted.

11 changes: 0 additions & 11 deletions docs/ksensor.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/ksimulation.rst

This file was deleted.

10 changes: 0 additions & 10 deletions docs/ksource.rst

This file was deleted.

28 changes: 0 additions & 28 deletions docs/kspace_fo.rst

This file was deleted.

7 changes: 7 additions & 0 deletions docs/kwave.data.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kwave.data module
=================

.. automodule:: kwave.data
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/kwave.enums.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kwave.enums module
==================

.. automodule:: kwave.enums
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/kwave.executor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kwave.executor module
=====================

.. automodule:: kwave.executor
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/kwave.kWaveSimulation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kwave.kWaveSimulation module
============================

.. automodule:: kwave.kWaveSimulation
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kwave.kWaveSimulation\_helper.create\_absorption\_variables module
==================================================================

.. automodule:: kwave.kWaveSimulation_helper.create_absorption_variables
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kwave.kWaveSimulation\_helper.create\_storage\_variables module
===============================================================

.. automodule:: kwave.kWaveSimulation_helper.create_storage_variables
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/kwave.kWaveSimulation_helper.data_cast.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kwave.kWaveSimulation\_helper.data\_cast module
===============================================

.. automodule:: kwave.kWaveSimulation_helper.data_cast
:members:
:undoc-members:
:show-inheritance:
Loading