Skip to main content

Openwater Focused Ultrasound Toolkit

Project description

Actions Status Documentation Status

PyPI version PyPI platforms

GitHub Discussion

openlifu is a toolbox for planning and controlling focused ultrasound treatments. It generally replicates the functionality developed in the MATLAB open-TFUS toolbox.

Installation

Requirements

Python 3.9 or later on Windows or Linux.

Create Virtual Environment

Windows:

C:\Users\<uname>\AppData\Local\Programs\Python\Python311\python.exe -m venv env
.\env\Scripts\activate

Linux:

python3.11 -m venv env

Install project (editable)

With this repo as the working directory:

Basic mode

pip install -e .

Dev mode

pip install -e '.[dev]'

Installing Meshroom

If you are using openlifu.nav.photoscan to reconstruct meshes from photo collections, then you will need to set up Meshroom.

Ubuntu

Download and Extract

  1. Download Meshroom for Linux from https://alicevision.org/#meshroom.

  2. Extract the downloaded archive:

    tar -xvf Meshroom-2023.3.0.tar.gz

Add Meshroom to PATH

Temporary (Current Session) Run:

export PATH="<path-to-meshroom>/Meshroom-2023.3.0:$PATH"

Replace <path-to-meshroom> with the actual path where Meshroom was extracted.

Permanent (Persistent Across Sessions) For Bash users:

echo 'export PATH="<path-to-meshroom>/Meshroom-2023.3.0:$PATH"' >> ~/.bashrc
source ~/.bashrc

Windows

Download and Extract

  1. Download Meshroom for Windows from https://alicevision.org/#meshroom.

  2. Extract the downloaded archive to a directory of your choice.

Add Meshroom to PATH

  1. Open Edit environment variables for your account from the Start menu.

  2. In the Environment Variables window, under User variables, select Path and click Edit.

  3. Click New, and add the path to the folder containing Meshroom.exe.

  4. Click OK to save the changes.

Enable GPU Acceleration

To ensure Meshroom uses your NVIDIA GPU:

  1. Open NVIDIA Control Panel.

  2. In the left sidebar under 3D Settings, click Manage 3D settings.

  3. Go to the Program Settings tab.

  4. Click Add, then browse to and select Meshroom.exe from the folder where you extracted Meshroom.

  5. Under Select the preferred graphics processor for this program, choose High-performance NVIDIA processor.

  6. Click Apply.

Version control of database using DVC (Data Version Control)

Data Version Control (DVC) is a data management tool that is meant to be run alongside Git. In this project, DVC is used to link changes in the code to specific versions of a sample database containing example project files. DVC can be used when this project is installed in Dev mode. You can read more about DVC and how to use it here. Note: Remote access to the sample database stored on google drive is currently restricted. Access requires a gdrive_client_secret for user access authentication to be shared by developers.

DVC usage

To download the sample database:

git pull
dvc remote modify --local shared_gdrive gdrive_client_secret <client_secret_here> # Contact developers for grive_client_secret
dvc pull # Requires access to remote storage

This will download a directory ‘db_dvc’ in the repo directory that contains the corresponding version of example database files.

To commit updates to the sample database:

dvc add db_dvc
git commit -m "Describe updates to database"
git push
dvc push #Requires access to remote storage

Disclaimer

CAUTION - Investigational device. Limited by Federal (or United States) law to investigational use. The system described here has not been evaluated by the FDA and is not designed for the treatment or diagnosis of any disease. It is provided AS-IS, with no warranties. User assumes all liability and responsibility for identifying and mitigating risks associated with using this software.

Project details


Download files

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

Source Distribution

openlifu-0.11.0.tar.gz (225.5 kB view details)

Uploaded Source

Built Distribution

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

openlifu-0.11.0-py3-none-any.whl (169.1 kB view details)

Uploaded Python 3

File details

Details for the file openlifu-0.11.0.tar.gz.

File metadata

  • Download URL: openlifu-0.11.0.tar.gz
  • Upload date:
  • Size: 225.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for openlifu-0.11.0.tar.gz
Algorithm Hash digest
SHA256 d3fa6f7269831b162118ca14fd72531eb38f37392818f0fc8d7a783adcd56029
MD5 733885ebf7b1ef9bb75a9225ec5b00cf
BLAKE2b-256 f6f2768c02fe141dedfead3522ecad43372e6c7e864475f12c864a7bc2feb80c

See more details on using hashes here.

Provenance

The following attestation bundles were made for openlifu-0.11.0.tar.gz:

Publisher: cd.yml on OpenwaterHealth/OpenLIFU-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openlifu-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: openlifu-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 169.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for openlifu-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19381ef7b5eea762a866e85a83afd4ca525a32927c87dbcea98211930d756ffc
MD5 d8f9bb0a7c4881c8a49fd20f4002834b
BLAKE2b-256 3790dca7d28bbd9b35cb9fb291a360bf8c2f9a5a43961e09119cba1a23edb804

See more details on using hashes here.

Provenance

The following attestation bundles were made for openlifu-0.11.0-py3-none-any.whl:

Publisher: cd.yml on OpenwaterHealth/OpenLIFU-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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