pyHyperRI is a PyTorch-based platform for developing, testing, and benchmarking radio-interferometric (RI) imaging algorithms. The current package focuses on intensity imaging, with workflows for both monochromatic and distributed hyperspectral reconstruction.
The package is installed as pyHyperRI and imported in Python as hyri.
Key Features
- Modular components for RI algorithm development: measurement operators, regularisers, denoisers, and optimisers.
- Intensity imaging workflows for monochromatic and hyperspectral data.
- Implemented algorithms: uSARA, AIRI, cAIRI, Hyper-uSARA, and HyperAIRI.
- PyTorch-native device support across CPU, CUDA, MPS, and XPU where available.
- Distributed hyperspectral imaging through
torch.distributed. - NUFFT measurement operators with FINUFFT and TorchKbNUFFT backends.
Installation
Install PyTorch first by following the official PyTorch installation guide, because the correct build depends on the operating system and target device.
Then install pyHyperRI:
pip install pyHyperRI
If CUDA devices are available, install the CUDA optional dependency group:
pip install "pyHyperRI[cuda]"
Measurement Set dependency is available through the ms optional
dependency group:
pip install "pyHyperRI[ms]"
Use this option mainly on Linux. On other systems, the
prerequisite casacore usually needs to be installed separately before installing
python-casacore. See the documentation for detailed installation guide.
For a source install:
git clone https://github.com/ChaoTang0330/py-hyper-ri.git
cd py-hyper-ri
pip install -e .
For development on Linux with CUDA devices, install all optional dependencies:
pip install -e ".[all]"
To verify the installation, run
hyri --help
We provide two Docker image variants with CUDA 12.8: development and runtime. The development image includes editable source code, all optional dependencies, tests, notebooks and documentation tools. The runtime image provides the installed package with CUDA and Measurement Set dependencies for running imaging workflows. Both images are available from GitHub Container Registry. See the Docker Images section of the installation guide for image details and customisation, and Run in a Container for container usage.
Minimal Example
Example measurements are available in the repository's
3c353_sim_vla_meas_hs
folder. Place this folder under ./data in your working directory, then run:
hyri imaging \
--algorithm usara \
--superresolution 1.5 \
--data_file ./data/3c353_sim_vla_meas_hs
Use hyri imaging --help to inspect available command-line options.
Documentation
Full documentation: pyHyperRI documentation.
The documentation covers the input data format, general usage, configuration files, tutorials, and the API reference.
To build the documentation locally, the packages under the dependency group docs are required.
pip install -e ".[docs]"
make docs
Citation
If you use pyHyperRI, please cite this software repository using the metadata in
CITATION.cff. If you use specific implemented methods, please
also cite the relevant method papers listed in the documentation.
License
pyHyperRI is distributed under the BSD 3-Clause License.
Dependencies
pyHyperRI builds on several external packages. The full dependency list is declared in
pyproject.toml. Main dependencies and their associated references are listed below.
Metadata
Release files for pyHyperRI 1.0.0
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 |
|---|---|---|---|---|
| pyhyperri-1.0.0.tar.gz | 74.3 MB | With provenance | Details for pyhyperri-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyhyperri-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pyhyperri-1.0.0-py3-none-any.whl |
Total release size: 148.6 MB
Release files / pyhyperri-1.0.0.tar.gz
| Download URL | pyhyperri-1.0.0.tar.gz |
|---|---|
| Size | 74.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9c244a00880660bd05575fde3b5d5a0777924485cd46e2c8cbc39c95b90098a
|
|
BLAKE2b-256 checksum How to use checksums |
108408582a89c298df6a155a59c3b1d6ad065f0b1d3e37479aca5757de133119
|
| 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 23, 2026.
Transparency logRelease files / pyhyperri-1.0.0-py3-none-any.whl
| Download URL | pyhyperri-1.0.0-py3-none-any.whl |
|---|---|
| Size | 74.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2daa3507d132f5224d4ed2efd5bc808375d0511dff773d5a85ced1728f95aa93
|
|
BLAKE2b-256 checksum How to use checksums |
d0e9f54ae5e85dbd00e5e49823f83afab02a627e538a7581d6a71a9d01164e27
|
| 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 23, 2026.
Transparency logSecurity for pyHyperRI 1.0.0
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.
Attestation for pyhyperri-1.0.0.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 23, 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.