PyTRiP
Project description
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 (see https://github.com/pytrip/pytripgui repo).
HOW TO WORK WITH IT ?
First, install pytrip98 package. The easiest way is to use pip package manager:
pip install pytrip98
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 this.
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
pytrip98-1.1.0.tar.gz
(1.5 MB
view hashes)
Built Distributions
Close
Hashes for pytrip98-1.1.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6051287f002e9b6adfe80d4cfa022799857a780a723bf328708e6676268947da |
|
MD5 | b915f6fbd52e4f687959d6418cf635ea |
|
BLAKE2b-256 | 25dc3bda6961179b3b8391723a8255608378e00ace904ef6a61d584e28abe494 |
Close
Hashes for pytrip98-1.1.0-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8657d3340db3dce836a9335583082e09a5de2c08f67c4149ee279cac82c4b9a7 |
|
MD5 | 7009784bd7345ad3f8a50bd14eb527fc |
|
BLAKE2b-256 | 7c7d2263b15a984cb978a9d1e94b0c62768d9179153db4954deb6b0628f91f20 |
Close
Hashes for pytrip98-1.1.0-cp35-cp35m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c22ac53826c8cd84b168d1414272ef1eca1900a79b28f1f4f10195036c27f0e0 |
|
MD5 | 81d606b4d38214e08f35a0f2b85baf92 |
|
BLAKE2b-256 | a70f3577db7f78af524210dfdb211daa0b447a722cb19c070104842a1e317296 |
Close
Hashes for pytrip98-1.1.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ce07c443a72665547a4bf895401e20202baf8003792a5617c1643609036a13a |
|
MD5 | 0b349e1142cbca3dbfbf9ddd341a2823 |
|
BLAKE2b-256 | e0e24d24187a89f85d88961b9f64478486933571b709deec59e4ea40900451f4 |
Close
Hashes for pytrip98-1.1.0-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f12df64a77c5ffe6dcb7aaaec2e46b7c6d5675b92f1b735996140fe7c3d059b6 |
|
MD5 | 8452f9122204901c950aa59602c38307 |
|
BLAKE2b-256 | 4a5b5904fa4b66a650da3d8d81736c5f61b247c011b37f27aa822168880d24a7 |
Close
Hashes for pytrip98-1.1.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6a08e077ea3a79e2d97f899983ec17ceb198315fd979ef9c48d4381094c068c |
|
MD5 | b353a9781800c135bf0afc67b6c79e00 |
|
BLAKE2b-256 | 98b49b264831855775a5d8e4923e0ef4405b8c3bcc8e36afab43480c0e69f926 |
Close
Hashes for pytrip98-1.1.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 327049404497b30d32899b9b04ebacafa6d14f45d976d2612f34b9b6a219a651 |
|
MD5 | f9f543a5bcf5ba25efb0f6640e4e234a |
|
BLAKE2b-256 | 53df4bb729772b40e4524c38d980c0cb4e23b93ef3a659107844ecfc0249fdf4 |
Close
Hashes for pytrip98-1.1.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac4dbb0f4c05b8d98f6bae998e6240fa00a9c3b52d0b120b7d25028d176185d |
|
MD5 | 8fb1dbc32b04192eee31121a1f924825 |
|
BLAKE2b-256 | e7f819254115d5806cfd144713b998cea1c9f8a22f33608a63d1ac3c11351c37 |
Close
Hashes for pytrip98-1.1.0-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df8d277711f1c241f44ca33c6dd348fe67e228ce5fac35320bc840b6a79a86bf |
|
MD5 | 580bacc52e2c57ed855d501fab0c5bdc |
|
BLAKE2b-256 | 968ffcacf3d4ae325ff83204755fe62cb173cc1143864f381376690e8d0663e8 |