SkillAgentSearch skills...

Topas2numpy

Reading TOPAS results into NumPy arrays

Install / Use

/learn @davidchall/Topas2numpy
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated1y ago
Forks7

Languages

Python

Security Score

70/100

Audited on Jan 4, 2025

No findings