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.1.tar.gz
(1.5 MB
view hashes)
Built Distributions
Close
Hashes for pytrip98-1.1.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f30bb8ca21edccedd56c78f0499eaddad368e30f6666e529896c8cc1118a7866 |
|
MD5 | 12fcf3d1f113c6b842da852add4c6572 |
|
BLAKE2b-256 | 9a91bf6a517d8078cf8505c973f9bff74ac9632bad04e7389cb7156b425f74ab |
Close
Hashes for pytrip98-1.1.1-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26b0c7b51325153f86eb3368707033c911268b35c30a4feead60f963ff1e7a61 |
|
MD5 | bde7228cedaf083197f46638d8283a7d |
|
BLAKE2b-256 | 6f52251b62466224e9001b997bbd5a8d941c409b293239eeb67c0d1b29b2304c |
Close
Hashes for pytrip98-1.1.1-cp35-cp35m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6ac828631c5fe2cdc7062b4761a4d66bf58602088e9f7e05cd46b787f73a542 |
|
MD5 | 0d045b6c8c6c13c6c8305f9ba8d01c43 |
|
BLAKE2b-256 | 2b871a89843eb7d6e4dd658ea10b8fd5334ce5df50652489115afc63d7eb58fe |
Close
Hashes for pytrip98-1.1.1-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9e3d13c4b85cc5e65a0b77989b8be90a03896fa6517b931369197a3f783d8c2 |
|
MD5 | 5e27f4e6d280ff42b16a4446373e5188 |
|
BLAKE2b-256 | 3a93583fd815f408f9c891590cc4adebd8eb1ae8c5778b03309a544bfb52a864 |
Close
Hashes for pytrip98-1.1.1-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05d440d605e36f1b65f04d383987ca34758ad562ab4e879318ab4e52ce1be612 |
|
MD5 | ae817b6231e588fa972443953dffa4bf |
|
BLAKE2b-256 | 6e7a5e1f80b25c89c7b637bd969a476655b5348845640cd06f46073d4d917371 |
Close
Hashes for pytrip98-1.1.1-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20e06d89ba7635615ba2a9cd0020ded7f44016511659dc0a0ef34ca07be2fe20 |
|
MD5 | 33da374cb7a6f32702c331e891e0f824 |
|
BLAKE2b-256 | 0431ae1c26330d36701c6940bfd0bca51829b93750ebcc63db49b6684213c465 |
Close
Hashes for pytrip98-1.1.1-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8f8c9eaeaf0333a94f767db2800b36e64161b8a78978c31f1994eb13ba134f5 |
|
MD5 | f8478c77e4495c373e4523378f87f7d5 |
|
BLAKE2b-256 | d642aae37cb26d246a969805bb75110c14f82a29e426072ab9629e15b4be2835 |
Close
Hashes for pytrip98-1.1.1-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aeeafd179239d5e2eaff8d502c912a6da0c1550a5347cd628bee20772213821 |
|
MD5 | e014cf97966da2f30e41bc7214110c7b |
|
BLAKE2b-256 | a1c3149c7a2244cb75a4cfb4e31f8c5ba0180aa7499f7e38671b5d3c8d5dd028 |
Close
Hashes for pytrip98-1.1.1-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 824f62d253690b68fc74def3106ff8c3948eb39229c7dd00509a714c5f889f4b |
|
MD5 | e092470714cd6af0d78e0db2c588f027 |
|
BLAKE2b-256 | db9a2010cfdbbd425eadd6c282c766fd8fe5732b22a9bf8657e36daa36eb68f2 |