CuPy-based 3D phase retrieval
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cuphaser-0.1.0.tar.gz.
File metadata
- Download URL: cuphaser-0.1.0.tar.gz
- Upload date:
- Size: 37.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a10cdba86c489cca20d01c5c7ce9a4184df1a191fa48d99d3b01ec0b8d52741
|
|
| MD5 |
e35b6c81cff290c411892124aadfcf47
|
|
| BLAKE2b-256 |
59949db7b6792dda6562297cbcc8219a841dd89eaeecebe2d50496eb977d8aa9
|
File details
Details for the file cuphaser-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cuphaser-0.1.0-py3-none-any.whl
- Upload date:
- Size: 39.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0baff360205d9e2e031d26784eae0767f80764c1b21a0bbaafbe34e3a4179692
|
|
| MD5 |
f7517d624838a7f56134e2637093c638
|
|
| BLAKE2b-256 |
360fd58119208817811ae687f75f9561437da3fd14f002f6ad293b9a023865f6
|