Skip to main content

Package for alignment and reconstruction of laminography and tomography datasets.

Project description

Installation Instructions

Conda Environment

  1. Create a conda environment with python 3.13
conda create -n pyxalign python=3.13

then activate the environment

conda activate pyxalign

Install astra-toolbox and CuPy from conda-forge:

conda install -c conda-forge astra-toolbox
conda install -c conda-forge cupy

Installing these libraries from conda-forge instead of pip ensures that required CUDA toolkit is installed.

Create an editable, developer installation of pyxalign:

git clone https://github.com/AdvancedPhotonSource/pyxalign.git
cd pyxalign
pip install -e ".[dev]"

Install the latest version of pyxalign from PyPI:

pip install pyxalign

Podman Container

  1. Clone the pyxalign git repo
git clone https://github.com/AdvancedPhotonSource/pyxalign.git
cd pyxalign
  1. Build the container image
podman build -t pyxalign:latest .
  1. Run the container
podman run \
    -it --rm --env DISPLAY --security-opt label=type:container_runtime_t \
    --network host -v="$HOME/.Xauthority:/root/.Xauthority:rw" \
    --device nvidia.com/gpu=all \
    pyxalign:latest bash

Any directories you need access to inside the container must be explicitly mounted using the -v flag:

-v /path/on/host:/path/in/container

For example, to mount your data directory:

podman run \
    -it --rm --env DISPLAY --security-opt label=type:container_runtime_t \
    --network host -v="$HOME/.Xauthority:/root/.Xauthority:rw" \
    -v /data/my_experiment:/data/my_experiment \
    --device nvidia.com/gpu=all \
    pyxalign:latest bash

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

pyxalign-1.1.0.tar.gz (279.4 kB view details)

Uploaded Source

Built Distribution

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

pyxalign-1.1.0-py3-none-any.whl (335.1 kB view details)

Uploaded Python 3

File details

Details for the file pyxalign-1.1.0.tar.gz.

File metadata

  • Download URL: pyxalign-1.1.0.tar.gz
  • Upload date:
  • Size: 279.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for pyxalign-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4f9d5ba9bf2561911c73566e8099a0fdbaaa55474eaefce2baf9a9a488b8c2fa
MD5 42be10f0ae0403aee7dd3b7bb2333767
BLAKE2b-256 f46cf35d8f0683a95de8213bbe32384095a7deba6d19e6ce9c68cd7818b07ca7

See more details on using hashes here.

File details

Details for the file pyxalign-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyxalign-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 335.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for pyxalign-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a6e4a7451f7f8cf0f1e475f120332dff6850343dccdacf47cd43097ee98bd5b
MD5 ae4e30c98dd1c8b88786032a028d293a
BLAKE2b-256 f212866c306dff64f9f6cccc38a4699f20b1a6cc275392ddc3f97d440c0c458d

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