Skip to main content

Python functions for reading TOPAS result files

Project description

topas2numpy

PyPI Package Build Status Code Coverage Documentation Status

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.0.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

topas2numpy-0.1.0-py2.py3-none-any.whl (6.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file topas2numpy-0.1.0.tar.gz.

File metadata

  • Download URL: topas2numpy-0.1.0.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for topas2numpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0ee7c66fefee681403c83fec98242f50d17ea678bb355d499c12a1d5ccb258cd
MD5 2468dfd10b8abbb0ac11193dece56eeb
BLAKE2b-256 1900c164ab361129a40ca5fff06b448d9bbb3154a0dfd5d01beae8fc18358573

See more details on using hashes here.

File details

Details for the file topas2numpy-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for topas2numpy-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a7ec609638b101ca325dd598068b517bd995a32f29e032a3e8c40291a215b0e2
MD5 2ae5015a62e0d1c6ece8cb432c16b618
BLAKE2b-256 ac925af33ae595845b47c8b3c730901585c6d1bc4aeefe72d5e574c67dc37494

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page