PyTRiP
Project description
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 (see https://github.com/pytrip/pytripgui).
pytrip provides several command line applications including trip2dicom, dicom2trip and cubeslice. They works under Linux and Mac OSX operating systems (interpreter of Python programming language has to be also installed). No programming knowledge is required from user, but basic skills in working with terminal console are needed to use them.
Quick installation guide
We recommend that you run a modern Linux distribution, like: Ubuntu 16.04 or newer, Debian 9 Stretch (currently known as testing) or any updated rolling release (archLinux, openSUSE tumbleweed). In this case, be sure you have python and python-pip installed. To get them on Debian or Ubuntu, type being logged in as normal user:
$ sudo apt-get install python-pip
To automatically download and install the pytrip library, type:
$ sudo pip install pytrip98
NOTE: the package is named pytrip98, while the name of library is pytrip.
This command will automatically download and install pytrip for all users in your system.
For more detailed instruction, see installation guide.
To learn how to install pytrip GUI, proceed to following document page: https://github.com/pytrip/pytripgui
Short documentation
Following Python code demonstrates PyTRiP capabilities:
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")
More documentation
Full documentation can be found here: https://pytrip.readthedocs.io/
If you would like to download the code and modify it, read first contribution guide.
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 Distribution
Built Distributions
Hashes for pytrip98-1.1.2-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5473a5c2c4894104265608cc83f2c8aed2da6e2470877d49e1de535c0a5332c9 |
|
MD5 | 489aa9a8033f2a90d80dc0ced6dbc097 |
|
BLAKE2b-256 | 84e11e241c57f7c3cdbfa9d90ca7a37e97b0495afac6b69443c9482cc9c0b865 |
Hashes for pytrip98-1.1.2-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a112acbe87d1a0d0966a8069989bbade17d917cbb2e143ba940ca4057321185 |
|
MD5 | 7ef6da1adc6ffcf307a02cc278cb03b8 |
|
BLAKE2b-256 | e548b24f8b78630c77676a429799bd0db7bda5f2f94617001b56c9bdc534f85e |
Hashes for pytrip98-1.1.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1757656493319a3dc4c8ba8c03680fcb658dc528f5e498c59f235e1b1d73bdb |
|
MD5 | 5364483fb811cba9f920dfc1bb1730d8 |
|
BLAKE2b-256 | 36d194d8f91112cd210800d424a307c1bdfda8e23bf6bd4f7d430896b43ecc41 |
Hashes for pytrip98-1.1.2-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1868c3e8ad4866a7f46555537bd07e8fde6d120a361f3138f84d1e271511b0e9 |
|
MD5 | a256242bbd61af419dc179b1b184b0af |
|
BLAKE2b-256 | fbd7e524c3bb9aa6f2a95512c448b937a3f45b688c34576f7aa4a9b1e98bf71e |
Hashes for pytrip98-1.1.2-cp35-cp35m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f22d041175d13355e416d772937f810f4e83517467ca42f7df162be386a26eb9 |
|
MD5 | 2e4a80f011c3188ce206b3ede5785c7d |
|
BLAKE2b-256 | aa0471ec5c0b7ec8ce43884deebad3dc73c1da7aea4ac1b1e3540ed50f68a35d |
Hashes for pytrip98-1.1.2-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5d074e3e8ffa05fa3a120118caa7688e8f4a97b1bbca5494659c98eacfef046 |
|
MD5 | 980013339aa9d92174975c7ffa6f9d85 |
|
BLAKE2b-256 | cf71049075cc4ebc7afcba27ce31098eb1333b9b24892121332c4ccffc9c520d |
Hashes for pytrip98-1.1.2-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b677b2dbd4e9204a22ee4008e2c12f097658f62228e44837dfcf4ed16522086 |
|
MD5 | 65fbfb1299c90da6051b0592e9a29022 |
|
BLAKE2b-256 | 0a038ec4d7b10de33126dc112aa3ca28c22b227b22f56b0d8689a555c44c63c1 |
Hashes for pytrip98-1.1.2-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 632d5b30d512a433a12d4c7855634d69d3437f1e2fc7b3529197520dae89162e |
|
MD5 | 0f527d6b2069168445faae7951978f87 |
|
BLAKE2b-256 | f10a249f1f992894158485da04e84946e929b313cabd96682ebb2737078c9fb6 |
Hashes for pytrip98-1.1.2-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96be49dbbcacd548f7ceca53de05f7edf8f1c4cc8542d86a71193ae1c1f790d7 |
|
MD5 | bfb323b434712fefafffd2cc68ca9d45 |
|
BLAKE2b-256 | 0ba54caf9e0421e84b94bc0f8a72b9d54e84db6e6b7350d64e5968abf34882bd |
Hashes for pytrip98-1.1.2-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55ce89632fc1398356ff7d3a9da393ab555fe595629ce6b4633537b1c1b77d0c |
|
MD5 | f4e8648c9d2055dff0ba9943f81be444 |
|
BLAKE2b-256 | d7c5be160ff969691c9857b4304f5ef7f03d87b16bcfc3f8a2a82e20afd632cb |
Hashes for pytrip98-1.1.2-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed52dd442de21861ea34c81c84c25f79b8e307064d5d25c236a57cbd4a82c9c8 |
|
MD5 | 0d8f0b8225d89894132926c2cc2109dd |
|
BLAKE2b-256 | 380e1146f34fed2fe1e3992d62b21e4a673c7c938bc17eb354ac8b0f1e3989d4 |