Skip to main content

Python toolkit for SHIELDHIT and Fluka

Project description

pymchelper

https://img.shields.io/pypi/v/pymchelper.svg https://img.shields.io/travis/DataMedSci/pymchelper.svg Documentation Status

Overview

docs

Documentation Status

tests

Travis-CI Build Status Appveyor Build Status

package

PyPI Package latest release PyPI Package monthly downloads PyPI Wheel Supported versions Supported implementations

Python toolkit for SHIELDHIT and Fluka

Installation

Official version

pip install pymchelper

Development version directly from GIT:

pip install versioneer
pip install git+https://github.com/DataMedSci/pymchelper.git

In case you don’t have administrator rights, add --user flag to pip command. In this situation converter will be probably installed in ~/.local/bin directory.

To be able to use tripcube converter install also pytrip98 Python package using pip.

To upgrade, type:

pip install -U pymchelper

To uninstall, simply use:

pip uninstall pymchelper

Documentation

To convert single dose.bdo file to a PNG image run:

convertmc dose.bdo plot_dose.png --converter image

Let us assume you ran SHIELDHIT on a cluster specifying 5 different estimators in detect.dat and running 100 parallel jobs. As an output you have 500 .bdo files. convertmc converter can automatically discover which files belong to which estimator and automatically generate 5 output files. To convert all *.bdo files to a set of PNG images you shouldn’t specify output file name, just run:

convertmc --many "*.bdo" --converter image

The same output format as in standard convertmc converter, shipped with SHIELDHIT code can be achieved with --converter standard option. In this case ASCII file with 4 columns will be saved.

Reduced ASCII output (i.e. only two columns for 1D scoring) can be produced with --converter plotdata option. Converters can be combined. Following command will generate ASCII data which can be digested by gnuplot and accompanying gnuplot scripts:

convertmc --many "*.bdo" --converter plotdata gnuplot

TRiP98 binary .dos cubes (two files: ASCII .hed and binary .dos) can be generated with --converter tripcube. It will produce output only for MSH and VOXMESH SHIELDHIT scorers.

More on https://pymchelper.readthedocs.io/

Features

  • reading *.bdo files generated by SHIELDHIT code

  • reading *_fort* files generated by Fluka

  • writing PNG images (1 and 2D plots)

  • writing tabulated ASCII files

  • writing gnuplot scripts

  • writing binary files with .dos cubes in TRiP98 format

Credits

This package was created with Cookiecutter and the grzanka/cookiecutter-pip-docker-versioneer project template.

Project details


Release history Release notifications | RSS feed

This version

0.3.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pymchelper-0.3.0-py2.py3-none-any.whl (44.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pymchelper-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pymchelper-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3990107e8b9deafd48fac00b1235b7258242eef944b18e340f99fe896e17261d
MD5 5bdbcbf9be8b2af4b37258cdaab13d9a
BLAKE2b-256 851dec02a6785a54b0f2952d657151f81facae608fb09c2e0dbae5890cf93761

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