Topas2numpy
Reading TOPAS results into NumPy arrays
Install / Use
/learn @davidchall/Topas2numpyREADME
=============================== topas2numpy
|pypi| |ci| |readthedocs|
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
.. code-block:: python
from topas2numpy import BinnedResult
x = BinnedResult('Dose.csv')
from topas2numpy import read_ntuple
y = read_ntuple('Beam.phsp')
.. _TOPAS: http://www.topasmc.org .. _NumPy: http://www.numpy.org
.. |pypi| image:: https://img.shields.io/pypi/v/topas2numpy.svg :target: https://pypi.python.org/pypi/topas2numpy :alt: PyPI Package
.. |ci| image:: https://github.com/davidchall/topas2numpy/workflows/CI/badge.svg :target: https://github.com/davidchall/topas2numpy/actions :alt: Build Status
.. |readthedocs| image:: http://readthedocs.org/projects/topas2numpy/badge/?version=latest :target: http://topas2numpy.readthedocs.org/en/latest/?badge=latest :alt: Documentation Status
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
