-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'waltsims:master' into benchmarks
- Loading branch information
Showing
15 changed files
with
216 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
threshold: 1% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: test_optional_requirements | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test_install: | ||
strategy: | ||
matrix: | ||
os: [ "windows-latest", "ubuntu-latest" ] #, "macos-latest"] | ||
python-version: [ "3.9", "3.10", "3.11", "3.12" ] | ||
extra_requirements: [ "test", "examples", "docs", "dev", "all" ] | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# Pull the cache based on the hash value | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
- name: Install dependencies | ||
run: | | ||
pip install '.[${{ matrix.extra_requirements }}]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ After installation, run the B-mode reconstruction example in the `examples` dire | |
```bash | ||
git clone https://github.com/waltsims/k-wave-python | ||
cd k-wave-python | ||
git checkout v0.3.1 | ||
git checkout v0.3.2 | ||
pip install '.[example]' | ||
python3 examples/us_bmode_linear_transducer/us_bmode_linear_transducer.py | ||
``` | ||
|
@@ -48,7 +48,7 @@ This example file steps through the process of: | |
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 30 of `bmode_reconstruction_example.py`](https://github.com/waltsims/k-wave-python/blob/master/examples/bmode_reconstruction_example.py#L30) | ||
set `RUN_SIMULATION` [on line 29 of `us_bmode_linear_transducer.py`](https://github.com/waltsims/k-wave-python/blob/6d2ee982bece84fc6980da99b23600f5675d2fc5/examples/us_bmode_linear_transducer/us_bmode_linear_transducer.py#L29) | ||
to `True`, and the example will run without the pre-computed data. | ||
|
||
## Development | ||
|
@@ -68,6 +68,15 @@ found [here](https://k-wave-python.readthedocs.io/en/latest/development/developm | |
|
||
The documentation for k-wave-python can be found [here](https://k-wave-python.readthedocs.io/en/latest/). | ||
|
||
## Citation | ||
```bibtex | ||
@software{k-Wave-Python, | ||
author = {Yagubbbayli, Farid and Sinden, David and Simson, Walter}, | ||
license = {GPL-3.0}, | ||
title = {{k-Wave-Python}}, | ||
url = {https://github.com/waltsims/k-wave-python} | ||
} | ||
``` | ||
## Contact | ||
|
||
e-mail [[email protected]](mailto:[email protected]). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ dynamic = ["version"] | |
description = "Acoustics toolbox for time domain acoustic and ultrasound simulations in complex and tissue-realistic media." | ||
readme = "docs/README.md" | ||
license = { file = "LICENSE" } | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
authors = [ | ||
{ name = "Farid Yagubbayli", email = "[email protected]" }, | ||
{ name = "Walter Simson", email = "[email protected]"} | ||
|
@@ -25,10 +25,10 @@ classifiers = [ | |
] | ||
dependencies = [ | ||
"h5py==3.10.0", | ||
"scipy==1.10.1", | ||
"scipy==1.12.0", | ||
"opencv-python==4.9.0.80", | ||
"deepdiff==6.7.1", | ||
"matplotlib==3.7.2", | ||
"matplotlib==3.8.3", | ||
"numpy>=1.22.2,<1.27.0", | ||
"nptyping==2.5.0", | ||
"beartype==0.16.4" | ||
|
@@ -42,7 +42,7 @@ Bug-tracker = "https://github.com/waltsims/k-wave-python/issues" | |
|
||
[project.optional-dependencies] | ||
test = ["pytest", | ||
"coverage==7.4.1", | ||
"coverage==7.4.3", | ||
"phantominator", | ||
"requests==2.31.0"] | ||
example = ["gdown==4.6.0"] | ||
|
@@ -51,7 +51,7 @@ docs = ["m2r2==0.3.2", | |
"sphinx-tabs==3.4.4", | ||
"sphinx-toolbox==3.5.0", | ||
"furo==2024.1.29"] | ||
dev = ["pre-commit==3.6.1"] | ||
dev = ["pre-commit==3.6.2"] | ||
|
||
[tool.hatch.version] | ||
path = "kwave/__init__.py" | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.