3D X-ray and electron scattering calculator using Debye equation
Project description
Debye3D
3D scattering calculator using the Debye equation for X-ray and electron scattering.
Description
debye3d is a Python package for computing 2D projections of 3D scattering patterns from atomic structures using the Debye scattering equation. It supports GPU (PyTorch) and CPU (Numba) acceleration for high-performance calculations.
Installation
Installation from PyPI
pip install debye3d
Installation with GPU acceleration
pip install debye3d[gpu]
Installation with all features
pip install debye3d[full]
Installation from source (development)
git clone https://github.com/nicoratel/Debye3D.git
cd Debye3D
pip install -e .
Dependencies
Required
- numpy >= 1.20.0
- scipy >= 1.7.0
- matplotlib >= 3.3.0
- ase >= 3.22.0
- pyyaml >= 5.4.0
- tqdm >= 4.60.0
Optional
- GPU: torch >= 1.9.0
- CPU acceleration: numba >= 0.54.0
- Detectors: pyFAI >= 0.20.0
- DebyeCalculator: debyecalculator >= 1.0.0
Usage
Refer to Jupyter notebooks for application examples
Key Features
- 🔬 3D scattering calculation using Debye equation
- ⚡ GPU support (PyTorch) and CPU acceleration (Numba)
- 🎯 Atomic form factors (Cromer-Mann and Lobato parametrizations)
- 🌐 Orientation averaging with adaptive Fibonacci grid
- 📊 Integration with pyFAI for detector simulations
- 💾 Utilities for saving and visualizing data
Package Structure
debye3d/
├── debye3d.py # Main Debye calculation functions
├── compute_f0.py # Atomic form factors
├── lobato_scattering.py # Lobato parametrizations
├── adaptative_fibonacci.py # Adaptive Fibonacci grid
├── generate_paracrystal_assembly.py # Supercell generation
├── utilities.py # Utilities (I/O, visualization)
└── elements_info.yaml # Element database
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 debye3d-0.1.0.tar.gz.
File metadata
- Download URL: debye3d-0.1.0.tar.gz
- Upload date:
- Size: 55.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9464beb62e85381f83bc4354a1dc9ecc8f6aa9774ce237fed34d7317be952b51
|
|
| MD5 |
d99996d4a3e53444523dd953ccb30360
|
|
| BLAKE2b-256 |
915e5542ab3ea595038580ca7dae24a3648ad073482278b931771d02e1b8f5da
|
File details
Details for the file debye3d-0.1.0-py3-none-any.whl.
File metadata
- Download URL: debye3d-0.1.0-py3-none-any.whl
- Upload date:
- Size: 55.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
144b6b9533f2d17cdf75ac274dc1f84b87f94a94a4ca0f29391c565adbea53ec
|
|
| MD5 |
1f8008cd5ed0a078e4eddc0ba93e231b
|
|
| BLAKE2b-256 |
ebfc07c9f805eda8588ac1e53c28a16e773d683e6b9bd0862400b8217152737d
|