skip to navigation
skip to content

topas2numpy 0.2.0

Python functions for reading TOPAS result files


Reading TOPAS results into NumPy arrays.


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')


0.1.2 (2016-02-23)

  • Support upcoming binary ntuple headers
  • Support additional integer columns in old-style binary phasespaces

0.1.0 (2016-02-19)

  • First release on PyPI
File Type Py Version Uploaded on Size
topas2numpy-0.2.0-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-05-19 6KB
topas2numpy-0.2.0.tar.gz (md5) Source 2017-05-19 88KB