pylinac 0.5.0.2__zip → 0.7.1__zip

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. {pylinac-0.5.0.2 → pylinac-0.7.1}/MANIFEST.in +0 -0
  2. {pylinac-0.5.0.2 → pylinac-0.7.1}/PKG-INFO +1 -1
  3. {pylinac-0.5.0.2 → pylinac-0.7.1}/README.rst +23 -17
  4. pylinac-0.7.1/pylinac/__init__.py +14 -0
  5. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/cbct.py +644 -426
  6. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/core/__init__.py +0 -0
  7. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/core/common_functions.py +0 -0
  8. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/core/decorators.py +1 -18
  9. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/core/geometry.py +30 -63
  10. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/core/image.py +99 -38
  11. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/core/io.py +97 -78
  12. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/core/profile.py +45 -5
  13. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/core/utilities.py +0 -16
  14. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/demo_files/cbct/High quality head.zip +0 -0
  15. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/demo_files/flatsym/flatsym_demo.dcm +0 -0
  16. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/demo_files/log_reader/AQA.dlg +0 -0
  17. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/demo_files/log_reader/BQA.dlg +0 -0
  18. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/demo_files/log_reader/Tlog.bin +0 -0
  19. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/demo_files/log_reader/Tlog2.bin +0 -0
  20. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/demo_files/picket_fence/EPID-PF-LR.dcm +0 -0
  21. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/demo_files/starshot/10X_collimator.tif +0 -0
  22. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/demo_files/vmat/DRGS_dmlc.dcm +0 -0
  23. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/demo_files/vmat/DRGS_open.dcm +0 -0
  24. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/demo_files/vmat/DRMLC_dmlc.dcm +0 -0
  25. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/demo_files/vmat/DRMLC_open.dcm +0 -0
  26. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/flatsym.py +120 -107
  27. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/log_analyzer.py +433 -182
  28. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac/picketfence.py +85 -51
  29. pylinac-0.7.1/pylinac/starshot.py +589 -0
  30. pylinac-0.7.1/pylinac/vmat.py +547 -0
  31. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac.egg-info/PKG-INFO +1 -1
  32. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac.egg-info/SOURCES.txt +0 -0
  33. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac.egg-info/dependency_links.txt +0 -0
  34. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac.egg-info/not-zip-safe +0 -0
  35. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac.egg-info/requires.txt +1 -1
  36. {pylinac-0.5.0.2 → pylinac-0.7.1}/pylinac.egg-info/top_level.txt +0 -0
  37. {pylinac-0.5.0.2 → pylinac-0.7.1}/setup.cfg +3 -2
  38. {pylinac-0.5.0.2 → pylinac-0.7.1}/setup.py +51 -49
  39. pylinac-0.5.0.2/pylinac/__init__.py +0 -20
  40. pylinac-0.5.0.2/pylinac/starshot.py +0 -534
  41. pylinac-0.5.0.2/pylinac/vmat.py +0 -591
File without changes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: pylinac
3
- Version: 0.5.0.2
3
+ Version: 0.7.1
4
4
  Summary: A toolkit for performing TG-142 QA-related tasks on a linear accelerator
5
5
  Home-page: https://github.com/jrkerns/pylinac
6
6
  Author: James Kerns
@@ -1,26 +1,28 @@
1
1
  Pylinac
2
2
  =======
3
3
 
4
- .. image:: https://pypip.in/version/pylinac/badge.svg?style=flat
5
- :target: https://pypi.python.org/pypi/pylinac/
4
+ .. image:: https://badges.gitter.im/Join%20Chat.svg
5
+ :alt: Join the chat at https://gitter.im/jrkerns/pylinac
6
+ :target: https://gitter.im/jrkerns/pylinac?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
7
+
8
+ .. image:: https://img.shields.io/pypi/v/pylinac.svg
9
+ :target: https://pypi.python.org/pypi/pylinac
6
10
  :alt: Latest Version
7
11
 
8
- .. image:: https://pypip.in/py_versions/pylinac/badge.svg?style=flat
12
+ .. image:: https://img.shields.io/pypi/l/pylinac.svg
9
13
  :target: https://pypi.python.org/pypi/pylinac/
10
- :alt: Supported Python versions
11
14
 
12
- .. image:: https://pypip.in/license/pylinac/badge.svg?style=flat
13
- :target: https://pypi.python.org/pypi/pylinac/
14
- :alt: License
15
+ .. image:: https://travis-ci.org/jrkerns/pylinac.svg?branch=master
16
+ :target: https://travis-ci.org/jrkerns/pylinac
15
17
 
16
18
  .. image:: https://coveralls.io/repos/jrkerns/pylinac/badge.svg?branch=master
17
19
  :target: https://coveralls.io/r/jrkerns/pylinac
18
20
 
19
21
 
20
22
  Pylinac provides TG-142 quality assurance (QA) tools to Python programmers as well as non-programmers in the field of
21
- therapy medical physics. The package comes in two flavors: source-level and GUI-level. The source-level
22
- allows programmers and those familiar with Python to create custom tests with pylinac while the GUI-level will implement
23
- pylinac into a GUI and executable that any user can use, without having to program software.
23
+ therapy medical physics. The package comes in two flavors: source-level and `web app <https://assuranceqa.herokuapp.com>`_. The source-level
24
+ allows programmers and those familiar with Python to create custom tests with pylinac while the web app is for
25
+ those who don't want or don't know how to program.
24
26
 
25
27
  Below are the tools currently available; tools will be added one at a time as they are developed.
26
28
 
@@ -29,16 +31,16 @@ Below are the tools currently available; tools will be added one at a time as th
29
31
  the minimum circle that touches all the radiation spokes (wobble). Based on ideas from `Depuydt et al <http://iopscience.iop.org/0031-9155/57/10/2997>`_
30
32
  and `Gonzalez et al <http://dx.doi.org/10.1118/1.1755491>`_ and evolutionary optimization.
31
33
  * `VMAT QA <http://pylinac.readthedocs.org/en/latest/vmat_docs.html>`_ -
32
- A module for analyzing EPID images after performing the `Jorgensen et al. <http://dx.doi.org/10.1118/1.3552922>`_ tests for VMAT QA, specifically the Dose Rate & Gantry Speed
33
- (DRGS) and Dose Rate MLC (DRMLC) tests. Can load the open and MLC field images and calculate segment ratios as per the Jorgensen implementation.
34
- * `CBCT QA <http://pylinac.readthedocs.org/en/latest/cbct_docs.html>`_ -
35
- A module to automatically analyze DICOM images of a CatPhan 504 delivered on a Varian linac. Corrects for yaw, pitch, roll
36
- and left-right, up-down displacement. Analysis is based on test descriptions in the
34
+ A module for analyzing EPID images after performing the Varian RapidArc QA tests, specifically the Dose Rate & Gantry Speed
35
+ (DRGS) and MLC Speed (MLCS) tests. Can load the open and MLC field images and calculate segment ratios as per the Varian specs.
36
+ * `CT & CBCT QA <http://pylinac.readthedocs.org/en/latest/cbct_docs.html>`_ -
37
+ A module to automatically analyze DICOM images of a CatPhan 504. Automatically finds the phantom and corrects positioning in all
38
+ 6 degrees of freedom. Analysis is based on test descriptions in the
37
39
  `manual <http://www.phantomlab.com/library/pdf/catphan504manual.pdf>`_ and analyzes HU linearity and
38
40
  image scaling (CTP404), high-contrast line pairs to determine MTF (CTP528), and HU uniformity (CTP486).
39
41
  * `Log Analysis <http://pylinac.readthedocs.org/en/latest/log_analyzer.html>`_ -
40
42
  This module reads Varian logs, both Dynalogs and Trajectory logs and allows exploration of all axes measured. A single log can
41
- be analyzed as well as batch processing.
43
+ be analyzed as well as batch processing. Trajectory log versions 2.1 and 3.0 are both covered.
42
44
  * `Picket Fence MLC Analysis <http://pylinac.readthedocs.org/en/latest/picketfence.html>`_ -
43
45
  This module will analyze EPID MLC picket fence images, allowing for both a passed
44
46
  tolerance as well as an action tolerance. A semi-transparent overlay allows for quick pass/warn/fail assessment.
@@ -50,11 +52,15 @@ Documentation
50
52
  To get started, install, run the demos, view the API docs, and learn the module design, visit the
51
53
  `Full Documentation <http://pylinac.readthedocs.org/en/latest/index.html>`_ on Read The Docs.
52
54
 
55
+ Discussion
56
+ ----------
57
+ Have questions? Ask them here on the `pylinac forum <https://groups.google.com/forum/#!forum/pylinac>`_.
58
+
53
59
  Contributing
54
60
  ------------
55
61
 
56
62
  Contributions to pylinac can be many. The most useful things a non-programmer can contribute are images to analyze and bug reports. If
57
- you have VMAT images, starshot images, machine log files, CBCT DICOM files, or anything else you want analyzed, email or share them via Dropbox, Google Drive, etc.
63
+ you have VMAT images, starshot images, machine log files, CBCT DICOM files, or anything else you want analyzed, email or share them via Dropbox, Google Drive, etc: jkerns at gmail.com
58
64
 
59
65
 
60
66
 
@@ -0,0 +1,14 @@
1
+
2
+ __version__ = '0.6.0.5'
3
+ __version_info__ = (0, 6, 0, 5)
4
+
5
+ import sys
6
+ if sys.version_info[0] < 3:
7
+ raise ValueError("Pylinac is only supported on Python 3.x. It seems you are using Python 2; please use a different interpreter.")
8
+
9
+ DEBUG = False
10
+ MEMORY_PROFILE = False
11
+
12
+ if DEBUG:
13
+ import warnings
14
+ warnings.warn("Pylinac is in Debug mode.")