Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

debye3d-0.1.3.tar.gz (55.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

debye3d-0.1.3-py3-none-any.whl (55.0 kB view details)

Uploaded Python 3

File details

Details for the file debye3d-0.1.3.tar.gz.

File metadata

  • Download URL: debye3d-0.1.3.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

Hashes for debye3d-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f0df301b9ba59feeb177b02413cca6a35b1c85ce8d5c21cade18524d69007a81
MD5 30d110748d93682d37e8c2d337b85daa
BLAKE2b-256 9018f405e1f7040c79eeca515ab1714bbb54217549b849081e841f371aec8958

See more details on using hashes here.

File details

Details for the file debye3d-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: debye3d-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 55.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for debye3d-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 439ee606b3837e3b404d8db9574fe4f80dba37f437ab957e45b61d458b972b0b
MD5 7511dfbc9c32e926cf919542da4fed43
BLAKE2b-256 ec6fbfb23b519f502fa5e83b1e710a35e3f590e60fe52eda99f2c9363ca3f3a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page