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:
- Clone the repository
- Use an environment manager to install the requirements from
requirements.txtor install the requirements using the commandpip install -r requirements.txtwhen in the repository directory - 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:
- Load the folder with the relevant images
- Drag and drop the series containing the relevant images into the viewer of the
Maintab - Generate the ROIs and run analysis
- Correct the context if required (see below)
- Re-run generating ROIs
- Move any ROIs as required, this should be done through their relevant modules.
- Re-run analysis
- 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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity 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.
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 logA 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.