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
Metadata
Release files for debye3d 0.1.3
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 |
|---|---|---|---|---|
| debye3d-0.1.3.tar.gz | 55.8 kB | Without provenance | Details for debye3d-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| debye3d-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for debye3d-0.1.3-py3-none-any.whl |
Total release size: 110.8 kB
Release files / debye3d-0.1.3.tar.gz
| Download URL | debye3d-0.1.3.tar.gz |
|---|---|
| Size | 55.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0df301b9ba59feeb177b02413cca6a35b1c85ce8d5c21cade18524d69007a81
|
|
BLAKE2b-256 checksum How to use checksums |
9018f405e1f7040c79eeca515ab1714bbb54217549b849081e841f371aec8958
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / debye3d-0.1.3-py3-none-any.whl
| Download URL | debye3d-0.1.3-py3-none-any.whl |
|---|---|
| Size | 55.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
439ee606b3837e3b404d8db9574fe4f80dba37f437ab957e45b61d458b972b0b
|
|
BLAKE2b-256 checksum How to use checksums |
ec6fbfb23b519f502fa5e83b1e710a35e3f590e60fe52eda99f2c9363ca3f3a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for debye3d 0.1.3
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.