Skip to main content

project logo

Static Badge Static Badge PyPI Version Static Badge Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

Description

aprict is a Python module for simulating transmission experiments in X-ray Computed Tomography, and for performing reconstructions from real and simulated data. In addition to the Python API, there is a commandline interface for some common operations.

Installation

pip install aprict[gui]

Disclaimer

This software is provided with no warranty or guarantee of correctness. This is my research code sandbox, subject to breaking changes on a whim. This is not mature software. So, if you like it and wish to use it, then it is best to download a fixed version and use that. Updates may break things.

Features

aprict uses the GPU for all the heavy operations. The terminology 'in-core' an 'out-of-core' here refers to whether the relevant data must fit entirely within the GPU VRAM (in-core) or not (out-of-core). It is assumed that the RAM on the machine is at least twice the size of the used VRAM on the GPU. Included features as of aprict==0.1.0:

  • Out-of-core calculation of projection data for arbitrary flat-panel geometries. Supports voxelised volumes and (almost) any FORBILD phantom. (Exact line integrals in all cases.)
  • Out-of-core analytic reconstruction for special geometries:
    • Fan-beam data with circular scan
    • Cone-beam data with cylindrical scan
  • In-core iterative reconstruction (Landweber and SIRT) for arbitrary geometries.

Documentation

Viewing online

The documentation for the latest release can be viewed online at https://docs.aprict.au/.

Viewing locally

The documentation may be viewed locally by cloning the repository and running python3 -m http.server -d aprict/docs/ 8080, then navigating to http://localhost:8080 in a browser window.

Caveats

Hardware Requirements

This software requires CUDA toolkit 13.x or newer to be installed on the system.

It is strongly recommended to use high-speed mass storage, such as an NVMe drive. The software has not been tested on slower mass storage, and is not expected to perform well without it.

This software has been tested with the following GPUs:

  • NVIDIA RTX 3090
  • NVIDIA RTX PRO 6000 Blackwell

Known limitations

  • Only flat-panel X-ray data with square pixels is supported, at this time.
  • Implementation-related issues which could be alleviated in the future:
    • Volume size is limited by CUDA texture limit. For example, a (2400,2400,4800) volume can be reconstructed, but not a (30000,30000,1) volume, due to a volume of this size not fitting within a single CUDA texture
    • The FORBILD shape Tetrahedron is not yet implemented, and no primitive shape is permitted to have more than 3 clipping planes applied, due to internal limitations. All other FORBILD phantoms should be supported.
    • Only one GPU is utilised by this module, at the present time. There is no defined behaviour for which GPU will be chosen.
    • Not fully optimised
    • CPU and GPU work not completely asynchronous: due to unresolved bugs, various asynchronous GPU operations have been disabled. This may not have much impact on large reconstructions, but could result in poor GPU utilisation for smaller reconstructions.
    • No smart batching of (back)projections: smarter code would analyse the geometry of projections, and batch together (back)projections that involve similar regions of the volume. Currently, the code does not do any kind of clever batching like this, and so the (back)projection code is not as performant as it could be.

Metadata

Release files for aprict 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aprict 0.1.1
File Size Uploaded Provenance Actions
aprict-0.1.1.tar.gz 6.0 MB With provenance Details for aprict-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aprict 0.1.1
File Interpreter ABI Platform Actions
aprict-0.1.1-py3-none-any.whl Python 3 none any Details for aprict-0.1.1-py3-none-any.whl

Total release size: 12.2 MB

Release files / aprict-0.1.1.tar.gz

Download URL aprict-0.1.1.tar.gz
Size 6.0 MB
Tags Source
SHA-256 checksum
How to use checksums
9d65dea93921d1a735ff047620c2907fb47c68ff5d27a95f60de96c0393fd185
BLAKE2b-256 checksum
How to use checksums
4947e623b226303f13f981a44eb525f5ca015b1b45115e2c0ebfbb3d9e33c733
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / aprict-0.1.1-py3-none-any.whl

Download URL aprict-0.1.1-py3-none-any.whl
Size 6.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
70325d7afc90d71ebed091b42d0550cebb0751471453fca2be051e654355d74d
BLAKE2b-256 checksum
How to use checksums
fd20ab26648d80c2436bf51737078dfa2a17bd101a9fd1b6be672fa536733a56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for aprict 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aprict-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page