dosimetry:userguide:thinknode
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dosimetry:userguide:thinknode [2015/09/28 15:41] – [decimal_logging] dpatenaude | dosimetry:userguide:thinknode [2021/07/29 18:23] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 6: | Line 6: | ||
====== Python ====== | ====== Python ====== | ||
+ | Please refer to the [[https:// | ||
===== Python: Overview ===== | ===== Python: Overview ===== | ||
Line 218: | Line 219: | ||
==== rt_types ==== | ==== rt_types ==== | ||
- | The // | + | The // |
Each data type detailed in the [[http:// | Each data type detailed in the [[http:// | ||
- | Below you will see as snippet from the rt_types module that shows the class for the //polyset// rt_type along with its default | + | Below you will see a snippet from the rt_types module that shows the class for the //polyset// rt_type along with its default |
<code python> | <code python> | ||
Line 271: | Line 272: | ||
</ | </ | ||
- | * **Interdependence: | + | * **Interdependence: |
- | * **// | + | * **// |
- | * **// | + | * **// |
- | Below is an example usage of getting a thinknode dose image (image_3d data type in the astroid manifest) and turning it into a rt_types image_3d data type, then using that data type to output the image as a VTK graphics file: | + | Below is an example usage of getting a thinknode dose image (image_3d data type in the astroid manifest) and turning it into a rt_types image_3d data type, so that it can be expanded and then used to output the image into a VTK graphics file: |
<code python> | <code python> | ||
Line 291: | Line 292: | ||
The // | The // | ||
- | Refer to the [[https:// | + | Refer to the [[https:// |
<code python> | <code python> | ||
Line 329: | Line 330: | ||
==== dosimetry_worker ==== | ==== dosimetry_worker ==== | ||
- | The dosimetry_worker module provides | + | The dosimetry_worker module provides |
Refer to the [[https:// | Refer to the [[https:// | ||
Line 341: | Line 342: | ||
==== vtk_worker ==== | ==== vtk_worker ==== | ||
- | The VTK worker provides a means to write out common rt_types to a .vtk file format that can be visualized in [[http:// | + | The VTK worker provides a means to write out common rt_types to a vtk file format |
- | Below is an example of turning a dose image_3d into a .vtk file for visualization in Paraview: | + | Below is an example of turning a dose image_3d into a vtk file for visualization in Paraview: |
<code python> | <code python> | ||
Line 358: | Line 359: | ||
==== decimal_logging ==== | ==== decimal_logging ==== | ||
- | The // | + | The // |
The following settings are available in the decimal_logging.py file: | The following settings are available in the decimal_logging.py file: | ||
Line 367: | Line 368: | ||
=== Debugging === | === Debugging === | ||
- | When debugging, use the dl.debug() function and set the isDebug flag in the decimal_logging library to True. This toggles on the output for each of the dl.debug calls. By default we keep debugging off, but it can be turned on as needed. | + | When debugging, use the dl.debug() function and set the //isDebug// flag in the decimal_logging library to True. This toggles on the output for each of the dl.debug calls. By default we keep debugging off, but it can be turned on as needed. |
=== Other Flags === | === Other Flags === | ||
Line 379: | Line 380: | ||
{{ dosimetry: | {{ dosimetry: | ||
- | === === | + | === File Logging |
+ | |||
+ | The decimal_logging library also provides simple file logging. The // | ||
+ | |||
+ | * log(message) | ||
+ | * log_debug_data(message, | ||
+ | * log_data(data) | ||
---- | ---- |
dosimetry/userguide/thinknode.1443454861.txt.gz · Last modified: 2021/07/29 18:21 (external edit)