Skip to main content

A toolbox for X-ray holo-tomography in Python

Project description

HoToPy - A toolbox for X-ray holo-tomography in Python

HoToPy

Documentation

Check out the online documentation at: https://irp.pages.gwdg.de/hotopy/reference.

Installation

We recommend to install HoToPy in a dedicated Python virtual environment, which can be created using uv venv or vanilla Python venv python3 -m venv.

pip installation

HoToPy can be installed through pip by running

pip install hotopy

for a basic HoToPy installation.

Tomography backend

The base installation of HoToPy does not contain a tomography backend. If you intend to use the tomographic functions in hotopy.tomo, you need to install the ASTRA toolbox as tomographic backend.

It can be conveniently installed through the optional dependency tomo of HoToPy by running:

pip install hotopy[tomo]

Alternative installation methods of the ASTRA toolbox can be found in its documentation.

PyTorch CUDA version

uv

You can use Astral's uv (an extremely fast Python package and project manager) built-in features to install different versions of CUDA backends. Consult their uv PyTorch integration documentation for details.

For example, you can explicitly request PyTorch with CUDA-13.0 with:

uv pip install hotopy --torch-backend=cu130

Replace cu130 with your desired version, e.g. cpu, cu126, cu128, etc. See available targets. Also, an automatic PyTorch backend selection is possible with auto.

pip

We strongly recommend using the uv tool, see above.

For pip-based installation, you can use the index URLs provided by the PyTorch project, see their Getting started documentation. For example, you can install HoToPy with PyTorch using CUDA-13.0 by running:

pip install hotopy --index-url https://download.pytorch.org/whl/cu130 --extra-index-url https://pypi.org/simple/

Replace cu130 with your desired version, e.g. cpu, cu126, cu128, etc. See available targets.

Source installations

You can also install bleeding-edge versions of HoToPy by cloning the repository.

git clone https://gitlab.gwdg.de/irp/hotopy.git
cd hotopy
uv pip install '.[tomo,dev]'

Here, the optional dependencies for tomography and development (dev) are included in the installation. You may add the --editable flag to the installation, for an editable development deployment.

Getting started

You can find examples in the dedicated HoToPy-Examples repository.

Paper & Citation

If you use HoToPy, please cite the paper HoToPy: a toolbox for X-ray holo-tomography in Python

@article{Lucht2025_hotopy,
    author = "Lucht, Jens and Meyer, Paul and Lohse, Leon Merten and Salditt, Tim",
    title = "{{\it HoToPy}: a toolbox for X-ray holo-tomography in Python}",
    journal = "Journal of Synchrotron Radiation",
    year = "2025",
    volume = "32",
    number = "6",
    pages = "1586--1594",
    month = "Nov",
    doi = {10.1107/S1600577525008550},
    url = {https://doi.org/10.1107/S1600577525008550},
    keywords = {X-ray imaging, phase retrieval, computed tomography, phase contrast, holography},
}

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

hotopy-0.25.tar.gz (84.5 kB view details)

Uploaded Source

Built Distribution

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

hotopy-0.25-py3-none-any.whl (102.2 kB view details)

Uploaded Python 3

File details

Details for the file hotopy-0.25.tar.gz.

File metadata

  • Download URL: hotopy-0.25.tar.gz
  • Upload date:
  • Size: 84.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Rocky Linux","version":"9.7","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hotopy-0.25.tar.gz
Algorithm Hash digest
SHA256 cbcd488cdba5a589e7c3c5cd384a63285384eae161a88de972f572896ff5945d
MD5 bbd54bf44dd6b1e36f15f758439501ad
BLAKE2b-256 dbf5036727b34880b2bae9f2266e13151a2a84d9d6e5076da7f323ac38e2cd7d

See more details on using hashes here.

File details

Details for the file hotopy-0.25-py3-none-any.whl.

File metadata

  • Download URL: hotopy-0.25-py3-none-any.whl
  • Upload date:
  • Size: 102.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Rocky Linux","version":"9.7","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hotopy-0.25-py3-none-any.whl
Algorithm Hash digest
SHA256 67a47f9bb0f614c5f86586c1a0ede0d72774b512c51bf2394c0cc51baa4171cd
MD5 878a3b56ea6c0b1d1668213d2ac2e6e8
BLAKE2b-256 2a6a2e42be5134cface35a71df61e22872988c87dfd84f6bd4edf7ff11c3c3ea

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