Python functions for reading TOPAS result files
Project description
topas2numpy
Reading TOPAS results into NumPy arrays.
Features
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.
Basic Usage
from topas2numpy import BinnedResult
x = BinnedResult('Dose.csv')
from topas2numpy import read_ntuple
y = read_ntuple('Beam.phsp')
History
0.1.0 (2016-2-19)
First release on PyPI.
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
topas2numpy-0.1.1.tar.gz
(30.0 kB
view hashes)
Built Distribution
Close
Hashes for topas2numpy-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1de7ed059a90c95fb058811966b8284e221a187f7d19cdc99579181d7a355a6c |
|
MD5 | 78da41d58004ad068e16eeb9a50d9f30 |
|
BLAKE2b-256 | 739d41e8b8629c443a401ce9da693abb39686ec97bc015b781ff2c5f1694de4c |