Skip to main content

Introduction

This repository contains code to analyse a uniform phantom using the PumpIA framework. It uses the subtraction SNR method and therefore expects a repeat image, however the uniformity module will run with a single image.

It is currently not validated and is provided as is, see the license for more information.

The collection contains the following tests:

  • SNR
  • Uniformity

Usage

Users should make themselves familiar with the PumpIA user interface

To run the collection:

  1. Clone the repository
  2. Use an environment manager to install the requirements from requirements.txt or install the requirements using the command pip install -r requirements.txt when in the repository directory
  3. Run the relevant script in /Testing

OR

install from PyPI using pip:

pip install pumpia-uniform-phantom

And run using the commands pumpia-uniform-phantom (making sure you are in the right environment if used for the pip install).

To use the collection:

  1. Load the folder with the relevant images
  2. Drag and drop the series containing the relevant images into the viewer of the Main tab
  3. Generate the ROIs and run analysis
  4. Correct the context if required (see below)
    • Re-run generating ROIs
  5. Move any ROIs as required, this should be done through their relevant modules.
    • Re-run analysis
  6. Copy the results in the relevant format. Horizontal is tab separated, vertical is new line separated.

Correcting Context

The context used for this collection is the Auto Phantom Context Manager provided with PumpIA, see the relevant documentation for this.

Modules

Subtraction SNR

Calculates SNR based on the subtraction method. The ROI size is determined from the size input as a percentage of the phantom height and width. The ROI is always centred on the phantom. The following corrections can be applied:

  • Bandwidth
  • Pixel Size (includes slice width)
  • Number of Averages
  • Number of Phase Encode Steps

A button for showing the subtraction image is included.

Uniformity

This is calculated using the integral uniformity method. The size of the ROI is determined in the same way as the SNR module.

There is the option of applying a low pass kernel convolution to the image prior to calculation, this is defaulted to on. The kernel is defined by

1/16 2/16 1/16
2/16 4/16 2/16
1/16 2/16 1/16

Metadata

Release files for pumpia-uniform-phantom 0.0.3

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

Source distribution (sdist)

Source distribution for pumpia-uniform-phantom 0.0.3
File Size Uploaded Provenance Actions
pumpia_uniform_phantom-0.0.3.tar.gz 7.0 kB With provenance Details for pumpia_uniform_phantom-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pumpia-uniform-phantom 0.0.3
File Interpreter ABI Platform Actions
pumpia_uniform_phantom-0.0.3-py3-none-any.whl Python 3 none any Details for pumpia_uniform_phantom-0.0.3-py3-none-any.whl

Total release size: 16.5 kB

Release files / pumpia_uniform_phantom-0.0.3.tar.gz

Download URL pumpia_uniform_phantom-0.0.3.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9e2f962733982c66505aebf12bc8845384a61ea5dcaf93c6995db820166b7686
BLAKE2b-256 checksum
How to use checksums
f82b711c038ac921faaf9d20eb3e9b23de4ad2abec61b793b09a1771f3318c44
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 2, 2026.

Transparency log

Release files / pumpia_uniform_phantom-0.0.3-py3-none-any.whl

Download URL pumpia_uniform_phantom-0.0.3-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
177d246119474c208e5116dfed260b93576b365f901a76bc795313522f1834fa
BLAKE2b-256 checksum
How to use checksums
db33f05b8fe68b0bfa287fa471197f8edec4db09d95c555b3291a6c72edeb53c
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 2, 2026.

Transparency log

Security for pumpia-uniform-phantom 0.0.3

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pumpia_uniform_phantom-0.0.3.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 2, 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.

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