Skip to main content

High-performance tomographic reconstruction

Project description

Model-Based Iterative Reconstruction (MBIR) for tomographic reconstruction that is based on the JAX library. Full documentation is available at https://mbirjax.readthedocs.io .

Installing from PyPI

For CPU only:

pip install mbirjax

For CPU with a CUDA12-enabled GPU:

pip install --upgrade mbirjax[cuda12]

Installing from Source

  1. Clone the repository:

    git clone git@github.com:cabouman/mbirjax.git
  2. Install the conda environment and package

    1. Option 1: Clean install using dev_scripts - We provide bash scripts that will do a clean install of MBIRJAX in a new conda environment using the commands:

      cd dev_scripts
      source clean_install_all.sh
    2. Option 2: Manual install - You can also manually install MBIRJAX from the main directory of the repository with the following commands:

      conda create --name mbirjax python=3.10
      conda activate mbirjax
      pip install -r requirements.txt
      pip install .

Optional Pixi Development Environment

For contributors who use Pixi, MBIRJAX also provides an optional reproducible development environment. This does not replace the conda installation workflow above.

For the default CPU environment on Linux or Apple Silicon macOS:

pixi run smoke
pixi run test-fast

For a CUDA-enabled Linux system:

pixi run -e cuda smoke-jax
pixi run -e cuda test-fast

Additional useful tasks include:

pixi run test
pixi run test-data
pixi run docs

Running Demo(s)

Run any of the available demo scripts with something like the following:

python demo/<demo_file>.py

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

mbirjax-0.6.17.1.tar.gz (550.8 kB view details)

Uploaded Source

Built Distribution

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

mbirjax-0.6.17.1-py3-none-any.whl (639.2 kB view details)

Uploaded Python 3

File details

Details for the file mbirjax-0.6.17.1.tar.gz.

File metadata

  • Download URL: mbirjax-0.6.17.1.tar.gz
  • Upload date:
  • Size: 550.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for mbirjax-0.6.17.1.tar.gz
Algorithm Hash digest
SHA256 588e1a6b2a4be187c261bb5927ce16de047714287e494aa2ceaf7a948621fc6d
MD5 4f99dbb5b9238faf0eaffd5db366fef4
BLAKE2b-256 86615ec38a7efb228e20c073440c5ded348d4fdf3d2c33a6715d1e65cbd8fef8

See more details on using hashes here.

File details

Details for the file mbirjax-0.6.17.1-py3-none-any.whl.

File metadata

  • Download URL: mbirjax-0.6.17.1-py3-none-any.whl
  • Upload date:
  • Size: 639.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for mbirjax-0.6.17.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a53751b340d1cba21928caaa50d0276e53f27b9061ecd8ae8369fec31bbbd607
MD5 066ce5d9a4af5d28757ff12fc603917c
BLAKE2b-256 57be13d578c0d5ebddc2af47a8b79944656348afd12f0ed4f294de64c1adf930

See more details on using hashes here.

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