Python functions for reading TOPAS result files
TOPAS is a Monte Carlo tool for particle simulation, designed for medical physics research. It can output two data types:
- binned: a quantity (e.g. dose) is accumulated within a binned geometry component
- ntuple: multiple data columns are recorded per particle history
This package is able to read both data types, enabling analysis within Python.
from topas2numpy import BinnedResult x = BinnedResult('Dose.csv') from topas2numpy import read_ntuple y = read_ntuple('Beam.phsp')
- Support upcoming binary ntuple headers
- Support additional integer columns in old-style binary phasespaces
- First release on PyPI
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for topas2numpy-0.2.0-py2.py3-none-any.whl