PyTRiP
Project description
pytrip
Overview
docs |
|
---|---|
tests |
|
package |
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)
Close
Hashes for pytrip98-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c6afe93c5f911d1a4bbe4e62b522c54d4ebeab4783bd1dd910abc510a5dcaef |
|
MD5 | 0e8e31a8a17e5129267c5626072e6fec |
|
BLAKE2b-256 | c416080b88fb0ebc842bf92197ec20588a71efde0e71cebd879ba4713ef67aa8 |