How martexiwell/torched-tacaw works
torched-TACAW is a PyTorch/GPU-accelerated TACAW engine built around py_multislice. Its principal workflow is configuring a calculation, running it through the dispatcher/calculator, then integrating stored diffraction intensities with detector masks to produce STEM images. The repository also provides coordinate, line-rasterization, units, and utility modules, plus current, Dask-based, and legacy postprocessing implementations. The excerpts show detector storage access and parts of configuration and dispatch; most calculation internals are unsampled, so unverified runtime links are omitted or dashed.
Main entry points: core.py Config · postprocessing.py Detector integration · postprocessing_dask.py Dask integration · postprocessing_old.py Legacy detectors
Components 15
Simulation
- Config
torched_tacaw/core.py - Calculator
torched_tacaw/core.py - Dispatcher
torched_tacaw/core.py
Geometry and utilities
- Scanning coordinates
torched_tacaw/coordinates.py - Bresenham lines
torched_tacaw/bresenham.py - Runtime utilities
torched_tacaw/tools.py - Unit conversion
torched_tacaw/units.py
Image processing
- Detector integration
torched_tacaw/postprocessing.py - Dask integration
torched_tacaw/postprocessing_dask.py - Legacy detectors
torched_tacaw/postprocessing_old.py
Data storage
- Trajectory input
torched_tacaw/io.py - Diffraction intensities
- STEM images
Other components
- Researcher
- py_multislice
Connections 12
- Researcher → Dispatcher: runs
torched_tacaw/core.py - Dispatcher → Calculator: dispatches to
torched_tacaw/core.py - Calculator → py_multislice: uses
README.md - Detector integration → Diffraction intensities: reads
torched_tacaw/postprocessing.py - Detector integration → STEM images: writes
torched_tacaw/postprocessing.py - Dask integration → Diffraction intensities: reads
torched_tacaw/postprocessing_dask.py - Dask integration → STEM images: writes
torched_tacaw/postprocessing_dask.py - Legacy detectors → Diffraction intensities: reads
torched_tacaw/postprocessing_old.py - Config → Scanning coordinates: uses
torched_tacaw/core.py - Detector integration → Config: queries grids
torched_tacaw/postprocessing.py - Dask integration → Config: queries grids
torched_tacaw/postprocessing_dask.py - Legacy detectors → Config: queries grids
torched_tacaw/postprocessing_old.py