cuphaser
CuPy-based 3D phase retrieval for X-ray single particle imaging.
Installation
pip install cuphaser
GPU Support
CuPhaser runs on CPU by default (using NumPy). For GPU acceleration, install the appropriate CuPy package for your CUDA version:
# For CUDA 12.x
pip install "cuphaser[cuda12x]"
# For CUDA 13.x
pip install "cuphaser[cuda13x]"
Alternatively, install CuPy separately following the CuPy installation guide.
Optional Dependencies
# With FFTW support (faster CPU FFTs)
pip install "cuphaser[fftw]"
Development Installation
For development, clone the repository and install in editable mode:
git clone https://github.com/AyyerLab/CuPhaser.git
cd CuPhaser
pip install -e ".[dev]"
Requirements
- Python >= 3.8
- numpy, scipy, mrcfile, h5py
- PyQt5, matplotlib, pyqtgraph
- cupy (optional, for GPU acceleration)
- pyfftw (optional, for faster CPU FFTs)
Usage
Preprocessing (required for Dragonfly output)
If using output from Dragonfly, first preprocess it:
# Interactive GUI for preprocessing configuration
cuphaser.preprocess.gui config.ini
# Or run preprocessing from command line
cuphaser.preprocess config.ini
Phase Retrieval
cuphaser -c config.ini
Configuration
See sample.ini for a complete configuration example.
License
GPL-3.0
Metadata
Release files for cuphaser 0.1.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 |
|---|---|---|---|---|
| cuphaser-0.1.0.tar.gz | 37.4 kB | Without provenance | Details for cuphaser-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cuphaser-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for cuphaser-0.1.0-py3-none-any.whl |
Total release size: 76.8 kB
Release files / cuphaser-0.1.0.tar.gz
| Download URL | cuphaser-0.1.0.tar.gz |
|---|---|
| Size | 37.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a10cdba86c489cca20d01c5c7ce9a4184df1a191fa48d99d3b01ec0b8d52741
|
|
BLAKE2b-256 checksum How to use checksums |
59949db7b6792dda6562297cbcc8219a841dd89eaeecebe2d50496eb977d8aa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.19
|
Release files / cuphaser-0.1.0-py3-none-any.whl
| Download URL | cuphaser-0.1.0-py3-none-any.whl |
|---|---|
| Size | 39.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0baff360205d9e2e031d26784eae0767f80764c1b21a0bbaafbe34e3a4179692
|
|
BLAKE2b-256 checksum How to use checksums |
360fd58119208817811ae687f75f9561437da3fd14f002f6ad293b9a023865f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.19
|
Security for cuphaser 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.