Skip to main content

PyTRiP

Project description

pytrip

https://img.shields.io/pypi/v/pytrip.svg https://img.shields.io/travis/pytrip/pytrip.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

PyTRiP

Installation

Stable version

pip install pytrip98

Latest unstable version, directly GIT repository, using:

pip install setuptools versioneer
pip install git+https://github.com/pytrip/pytrip.git

To unistall, simply use:

pip uninstall beprof

Documentation

https://pytrip.readthedocs.io/

WHAT IS THIS ?

PyTRiP is a python package for working with TRiP and VIRTUOS/VOXELPLAN files. It is mainly supposed for batch processing, but an experimental GUI is also included.

HOW TO DO STUFF:

from pytrip import *

# read a dose cube, divide by 2.0, and write to a new cube:
d0 = DosCube()
d0.read("box050001.dos")
d0 = d0/2.0
d0.write("out0.dos")

# sum two dose cubes, write result:
print "Two half boxes: out.dos"
d1 = DosCube()
d2 = DosCube()
d1.read("box052000.dos")
d2.read("box053000.dos")
d = (d1 + d2)
d.write("out.dos")


# print minium and maximum value found in cubes
print d1.cube.min(),d1.cube.max()
print d0.cube.min(),d0.cube.max()

# calculate new dose average LET cube
l1 = LETCube()
l2 = LETCube()
l1.read("box052000.dosemlet.dos")
l2.read("box053000.dosemlet.dos")

l = ((d1 * l1) + (d2 * l2)) / (d1 + d2)
l.write("out.dosemlet.dos")

Credits

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

Project details


Release history Release notifications | RSS feed

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

pytrip98-0.2.1-py2.py3-none-any.whl (206.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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