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.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

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

Uploaded Source

Built Distribution

topas2numpy-0.2.0-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for topas2numpy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5691d1fa690ffa1971b72e00722e81f41907e5cb4b41d63f3b538c2d33ce160e
MD5 ad79d6d0b3867b9706115be4c4be5137
BLAKE2b-256 b9e5fe6fc71d9748b3895dc2fecc65da25ff8ead30da63d0cafd3b2ad88a62d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topas2numpy-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8e1023066d4405e8c084912b0fe80e74293040281b58342b86e46a1313c6596d
MD5 61f962bb0c36a42c8dec473796f7c88a
BLAKE2b-256 3b32440c9529eed74fadfaa676324ad220268741950c56a34fe08f4b7f1458ef

See more details on using hashes here.

Supported by

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