Skip to main content

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)

Source distribution for cuphaser 0.1.0
File Size Uploaded
cuphaser-0.1.0.tar.gz 37.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cuphaser 0.1.0
File Interpreter ABI Platform
cuphaser-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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