DOE OSTI · code-185477
rustpix
Abstract
rustpix is a high-performance, open-source Rust library with first-class Python bindings (via PyO3) for processing pixel-detector data in neutron imaging. It targets time-stamping detectors such as Timepix3 (TPX3) at ORNL's Spallation Neutron Source (VENUS beamline), where each detected neutron deposits charge across a cluster of pixels within a very high-rate event stream (96M+ hits/sec). rustpix parses TPX3 event data in parallel using memory-mapped I/O, offers four interchangeable clustering algorithms (ABS adjacency-based search, DBSCAN, graph/union-find connected components, and a parallel grid method), and extracts weighted, super-resolved centroids to produce neutron-event lists. A streaming architecture lets it process files larger than available memory. rustpix is distributed as a pip-installable Python package (with NumPy integration), Rust crates, a command-line tool, and an interactive GUI; it writes HDF5, Apache Arrow, and CSV; and it is designed to extend to TPX4 and other detector types. Released as open-source under the MIT License.
Keep this discovery
Explore connections, maps & timelines
Zhang, Chen [Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)] (0000000183744467), Funama, Fumiaki [Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)] (0000000332808103), Bilheux, Jean-Christophe [Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)] (0000000321726487). 2026-03-05. rustpix. https://doi.org/10.5281/zenodo.18496370
Cite the original work for its findings. Save a collection to share your selection of sources.