pyRadPlan 0.4.0__tar.gz → 0.4.1__tar.gz

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 (278) hide show
  1. {pyradplan-0.4.0 → pyradplan-0.4.1}/PKG-INFO +1 -1
  2. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/pencilbeam_carbon.py +17 -3
  3. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/core/xp_utils/helpers.py +2 -2
  4. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dose/engines/_base_pencilbeam.py +2 -0
  5. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/windows/_result_win.py +8 -0
  6. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/visualization/_plot_multiple_slices.py +2 -0
  7. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan.egg-info/PKG-INFO +1 -1
  8. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyproject.toml +1 -1
  9. {pyradplan-0.4.0 → pyradplan-0.4.1}/LICENSE +0 -0
  10. {pyradplan-0.4.0 → pyradplan-0.4.1}/README.md +0 -0
  11. {pyradplan-0.4.0 → pyradplan-0.4.1}/benchmark/bench_trace_cubes.py +0 -0
  12. {pyradplan-0.4.0 → pyradplan-0.4.1}/benchmark/benchmark_interp1d.py +0 -0
  13. {pyradplan-0.4.0 → pyradplan-0.4.1}/benchmark/benchmark_interpnd.py +0 -0
  14. {pyradplan-0.4.0 → pyradplan-0.4.1}/docs/conf.py +0 -0
  15. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/intro_minimal_photons.py +0 -0
  16. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/intro_minimal_protons.py +0 -0
  17. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/mc_fred.py +0 -0
  18. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/pencilbeam_helium.py +0 -0
  19. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/pencilbeam_photon.py +0 -0
  20. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/pencilbeam_photon_forward.py +0 -0
  21. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/pencilbeam_proton.py +0 -0
  22. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/pencilbeam_proton_let.py +0 -0
  23. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/pencilbeam_vhee.py +0 -0
  24. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/proton_mc_fred.py +0 -0
  25. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/proton_mc_topas.py +0 -0
  26. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/proton_mimicking.py +0 -0
  27. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/raytracer_rad_depth.py +0 -0
  28. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/utils_ai_agents.py +0 -0
  29. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/utils_backends.py +0 -0
  30. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/utils_matrad.py +0 -0
  31. {pyradplan-0.4.0 → pyradplan-0.4.1}/examples/utils_plotting.py +0 -0
  32. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/__init__.py +0 -0
  33. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/ai_agents/__init__.py +0 -0
  34. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/ai_agents/_cst_agents.py +0 -0
  35. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/ai_agents/_plan_agents.py +0 -0
  36. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/ai_agents/_settings.py +0 -0
  37. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/analysis/__init__.py +0 -0
  38. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/analysis/_dvh.py +0 -0
  39. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/core/__init__.py +0 -0
  40. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/core/_exceptions.py +0 -0
  41. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/core/_grids.py +0 -0
  42. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/core/datamodel.py +0 -0
  43. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/core/np2sitk.py +0 -0
  44. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/core/resample.py +0 -0
  45. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/core/xp_utils/__init__.py +0 -0
  46. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/core/xp_utils/compat.py +0 -0
  47. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/core/xp_utils/typing.py +0 -0
  48. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/cst/__init__.py +0 -0
  49. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/cst/_cst.py +0 -0
  50. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/cst/_voi.py +0 -0
  51. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/ct/__init__.py +0 -0
  52. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/ct/_ct.py +0 -0
  53. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/ct/_hlut.py +0 -0
  54. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/data/TOPAS/input/beam_setup/TOPAS_beam_setup_biGaussian.txt.in +0 -0
  55. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/data/TOPAS/input/material_converter/TOPAS_schneider_converter.txt.in +0 -0
  56. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/data/TOPAS/input/scorer/TOPAS_scorer_doseToMedium.txt.in +0 -0
  57. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/data/TOPAS/input/scorer/TOPAS_scorer_doseToWater.txt.in +0 -0
  58. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/data/TOPAS/input/scorer/TOPAS_subscorer_LET.txt.in +0 -0
  59. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/data/TOPAS/input/template/beamSetup_template.txt +0 -0
  60. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/data/TOPAS/input/template/patient_template.txt +0 -0
  61. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/data/TOPAS/input/template/pyRadPlan_run_template.txt +0 -0
  62. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/data/machines/VHEE_Focused.mat +0 -0
  63. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/data/machines/VHEE_Generic.mat +0 -0
  64. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/data/machines/carbon_Generic.mat +0 -0
  65. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/data/machines/helium_Generic.mat +0 -0
  66. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/data/machines/photons_Generic.mat +0 -0
  67. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/data/machines/protons_Generic.mat +0 -0
  68. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/data/phantoms/TG119.mat +0 -0
  69. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dij/__init__.py +0 -0
  70. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dij/_compose_beam_dijs.py +0 -0
  71. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dij/_dij.py +0 -0
  72. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dose/__init__.py +0 -0
  73. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dose/_calc_dose.py +0 -0
  74. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dose/engines/__init__.py +0 -0
  75. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dose/engines/_base.py +0 -0
  76. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dose/engines/_base_montecarlo.py +0 -0
  77. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dose/engines/_base_pencilbeam_particle.py +0 -0
  78. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dose/engines/_factory.py +0 -0
  79. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dose/engines/_fredmc.py +0 -0
  80. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dose/engines/_hongpb.py +0 -0
  81. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dose/engines/_svdpb.py +0 -0
  82. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dose/engines/_topasmc.py +0 -0
  83. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dose/engines/kernels/__init__.py +0 -0
  84. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/dose/engines/kernels/_calc_geo_dists_kernel.py +0 -0
  85. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/geometry/__init__.py +0 -0
  86. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/geometry/lps.py +0 -0
  87. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/__init__.py +0 -0
  88. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/apps.py +0 -0
  89. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/menus/_edit.py +0 -0
  90. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/menus/_file.py +0 -0
  91. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/menus/_help.py +0 -0
  92. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/menus/_view.py +0 -0
  93. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/widgets/__init__.py +0 -0
  94. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/widgets/_analysis_widget.py +0 -0
  95. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/widgets/_result_widget.py +0 -0
  96. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/widgets/analysis/_dvh.py +0 -0
  97. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/widgets/analysis/_gamma.py +0 -0
  98. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/widgets/analysis/_qi.py +0 -0
  99. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/widgets/result/__init__.py +0 -0
  100. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/widgets/result/_labels.py +0 -0
  101. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/widgets/result/quantity_widget.py +0 -0
  102. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/widgets/result/viewer_options_widget.py +0 -0
  103. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/widgets/result/visualization_widget.py +0 -0
  104. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/widgets/result/vois_widget.py +0 -0
  105. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/gui/windows/_analysis_win.py +0 -0
  106. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/io/__init__.py +0 -0
  107. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/io/_matlab_file_handler.py +0 -0
  108. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/io/_patient_loader.py +0 -0
  109. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/io/matfile.py +0 -0
  110. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/__init__.py +0 -0
  111. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/_load.py +0 -0
  112. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/_validate.py +0 -0
  113. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/base/__init__.py +0 -0
  114. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/base/_base.py +0 -0
  115. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/base/_beam_modifier.py +0 -0
  116. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/base/_external_beam.py +0 -0
  117. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/base/_factory.py +0 -0
  118. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/base/_internal_beam.py +0 -0
  119. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/particles/__init__.py +0 -0
  120. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/particles/_base.py +0 -0
  121. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/particles/_beam_cutoff.py +0 -0
  122. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/particles/_beam_emittance.py +0 -0
  123. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/particles/_beam_energy.py +0 -0
  124. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/particles/_beam_focus.py +0 -0
  125. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/particles/_ions.py +0 -0
  126. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/particles/_vhee.py +0 -0
  127. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/particles/kernel/__init__.py +0 -0
  128. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/particles/kernel/_base.py +0 -0
  129. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/particles/kernel/_ions.py +0 -0
  130. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/particles/kernel/_vhee.py +0 -0
  131. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/photons/__init__.py +0 -0
  132. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/photons/_base.py +0 -0
  133. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/photons/_calculate_machine_scale.py +0 -0
  134. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/photons/_linac.py +0 -0
  135. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/machines/photons/_svd_kernel.py +0 -0
  136. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/matRad/__init__.py +0 -0
  137. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/matRad/_engine.py +0 -0
  138. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/matRad/_matlab.py +0 -0
  139. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/matRad/_octave.py +0 -0
  140. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/__init__.py +0 -0
  141. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/_fluence_optimization.py +0 -0
  142. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/objectives/__init__.py +0 -0
  143. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/objectives/_eud.py +0 -0
  144. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/objectives/_factory.py +0 -0
  145. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/objectives/_max_dvh.py +0 -0
  146. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/objectives/_mean.py +0 -0
  147. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/objectives/_min_dvh.py +0 -0
  148. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/objectives/_objective.py +0 -0
  149. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/objectives/_squared_dev.py +0 -0
  150. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/objectives/_squared_mimicking.py +0 -0
  151. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/objectives/_squared_over.py +0 -0
  152. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/objectives/_squared_under.py +0 -0
  153. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/objectives/_std.py +0 -0
  154. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/problems/__init__.py +0 -0
  155. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/problems/_factory.py +0 -0
  156. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/problems/_nonlin_fluence.py +0 -0
  157. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/problems/_optiprob.py +0 -0
  158. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/problems/_simple_least_squares.py +0 -0
  159. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/solvers/__init__.py +0 -0
  160. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/solvers/_base_solvers.py +0 -0
  161. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/solvers/_factory.py +0 -0
  162. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/solvers/_ipopt.py +0 -0
  163. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/optimization/solvers/_scipy_solver.py +0 -0
  164. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/plan/__init__.py +0 -0
  165. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/plan/_plans.py +0 -0
  166. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/quantities/__init__.py +0 -0
  167. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/quantities/_alpha_dose.py +0 -0
  168. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/quantities/_base.py +0 -0
  169. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/quantities/_dose.py +0 -0
  170. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/quantities/_effect.py +0 -0
  171. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/quantities/_let.py +0 -0
  172. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/quantities/_let_x_dose.py +0 -0
  173. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/quantities/_rbe_x_dose.py +0 -0
  174. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/quantities/_resolver.py +0 -0
  175. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/quantities/_sqrt_beta_dose.py +0 -0
  176. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/raytracer/__init__.py +0 -0
  177. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/raytracer/_base.py +0 -0
  178. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/raytracer/_numba_perf.py +0 -0
  179. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/raytracer/_siddon.py +0 -0
  180. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/scenarios/__init__.py +0 -0
  181. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/scenarios/_base.py +0 -0
  182. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/scenarios/_nominal.py +0 -0
  183. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/stf/__init__.py +0 -0
  184. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/stf/_beam.py +0 -0
  185. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/stf/_beamlet.py +0 -0
  186. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/stf/_exceptions.py +0 -0
  187. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/stf/_generate_stf.py +0 -0
  188. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/stf/_rangeshifter.py +0 -0
  189. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/stf/_ray.py +0 -0
  190. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/stf/_steeringinformation.py +0 -0
  191. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/stf/generators/__init__.py +0 -0
  192. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/stf/generators/_base.py +0 -0
  193. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/stf/generators/_externalbeam.py +0 -0
  194. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/stf/generators/_factory.py +0 -0
  195. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/stf/generators/_ions.py +0 -0
  196. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/stf/generators/_photons.py +0 -0
  197. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/stf/generators/_vhee.py +0 -0
  198. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/util/__init__.py +0 -0
  199. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/util/helpers.py +0 -0
  200. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/util/keyboard_listener.py +0 -0
  201. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/visualization/__init__.py +0 -0
  202. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan/visualization/_plot_slice.py +0 -0
  203. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan.egg-info/SOURCES.txt +0 -0
  204. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan.egg-info/dependency_links.txt +0 -0
  205. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan.egg-info/requires.txt +0 -0
  206. {pyradplan-0.4.0 → pyradplan-0.4.1}/pyRadPlan.egg-info/top_level.txt +0 -0
  207. {pyradplan-0.4.0 → pyradplan-0.4.1}/setup.cfg +0 -0
  208. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/analysis/test_dvh.py +0 -0
  209. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/analysis/test_qi.py +0 -0
  210. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/conftest.py +0 -0
  211. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/core/test_coordinates.py +0 -0
  212. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/core/test_datamodel.py +0 -0
  213. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/core/test_np2sitk.py +0 -0
  214. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/core/test_resample.py +0 -0
  215. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/core/xp_utils/compat/test_interp1d_torch.py +0 -0
  216. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/core/xp_utils/compat/test_interpnd.py +0 -0
  217. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/core/xp_utils/compat/test_math_interp1d.py +0 -0
  218. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/core/xp_utils/compat/test_math_quantile.py +0 -0
  219. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/core/xp_utils/helpers/test_namespace_conversion.py +0 -0
  220. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/core/xp_utils/test_initialization.py +0 -0
  221. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/cst/conftest.py +0 -0
  222. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/cst/test_VOI.py +0 -0
  223. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/cst/test_cst.py +0 -0
  224. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/ct/test_ct.py +0 -0
  225. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/ct/test_hlut.py +0 -0
  226. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/data/test_validate_test_data.py +0 -0
  227. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/dose/conftest.py +0 -0
  228. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/dose/kernels/test_calc_geo_dists.py +0 -0
  229. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/dose/test_base_pencilbeam.py +0 -0
  230. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/dose/test_dose_engine_base.py +0 -0
  231. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/dose/test_factory.py +0 -0
  232. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/dose/test_fred.py +0 -0
  233. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/dose/test_hongpb.py +0 -0
  234. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/dose/test_pb_geodist.py +0 -0
  235. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/dose/test_svdpb.py +0 -0
  236. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/dose/test_topas.py +0 -0
  237. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/geometry/test_lps.py +0 -0
  238. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/gui/conftest.py +0 -0
  239. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/gui/widgets/analysis/test_widget_analysis.py +0 -0
  240. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/gui/widgets/analysis/test_widget_dvh.py +0 -0
  241. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/gui/widgets/analysis/test_widget_gamma.py +0 -0
  242. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/gui/widgets/analysis/test_widget_qi.py +0 -0
  243. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/gui/widgets/result/test_widget_quantity.py +0 -0
  244. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/gui/widgets/result/test_widget_viewer_options.py +0 -0
  245. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/gui/widgets/result/test_widget_visualization.py +0 -0
  246. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/gui/widgets/result/test_widget_vois.py +0 -0
  247. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/gui/widgets/test_widget_result.py +0 -0
  248. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/gui/windows/test_win_analysis.py +0 -0
  249. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/gui/windows/test_win_result.py +0 -0
  250. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/machines/test_beam_modifiers.py +0 -0
  251. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/optimization/test_fluence_optiprob.py +0 -0
  252. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/optimization/test_ipopt_solver.py +0 -0
  253. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/optimization/test_objectives.py +0 -0
  254. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/optimization/test_problem_factory.py +0 -0
  255. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/optimization/test_scipy_solver.py +0 -0
  256. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/optimization/test_solver_factory.py +0 -0
  257. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/quantities/test_alpha_dose_quantity.py +0 -0
  258. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/quantities/test_dose_quantity.py +0 -0
  259. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/quantities/test_effect_quantity.py +0 -0
  260. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/quantities/test_let_dose_quantity.py +0 -0
  261. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/quantities/test_rbe_x_dose_quantity.py +0 -0
  262. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/quantities/test_resolver.py +0 -0
  263. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/quantities/test_sqrt_beta_dose_quantity.py +0 -0
  264. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/stf/test_beamlet.py +0 -0
  265. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/stf/test_stf.py +0 -0
  266. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/stf/test_stf_gen.py +0 -0
  267. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/test_dij.py +0 -0
  268. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/test_fileHandling.py +0 -0
  269. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/test_grid.py +0 -0
  270. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/test_helpers.py +0 -0
  271. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/test_machine_model.py +0 -0
  272. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/test_matlabEngine.py +0 -0
  273. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/test_octaveEngine.py +0 -0
  274. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/test_plan.py +0 -0
  275. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/test_raytracersiddon.py +0 -0
  276. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/test_scenarios.py +0 -0
  277. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/visualization/test_plot_multiple_slices.py +0 -0
  278. {pyradplan-0.4.0 → pyradplan-0.4.1}/test/visualization/test_plot_slice.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyRadPlan
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: A python interface and reimplementation to matRad
5
5
  Author-email: Niklas Wahl <n.wahl@dkfz-heidelberg.de>, Tobias Becher <t.becher@dkfz-heidelberg.de>, Lina Bucher <lina.bucher@dkfz-heidelberg.de>, Louis Ermeneux <louis.ermeneux@gmail.com>, Antonios Kontopoulos <antonios.kontopoulos@dkfz-heidelberg.de>, Julius Laub <julius.laub@dkfz-heidelberg.de>, Florian Leininger <florian.leininger@dkfz-heidelberg.de>, Tim Ortkamp <tim.ortkamp@kit.edu>, Victoria Santiago Aguilar <victoria.santiagoaguilar@dkfz-heidelberg.de>, Goran Stanic <goran.stanic@dkfz-heidelberg.de>, Samir Schulz <samirshivaji.schulz@dkfz-heidelberg.de>, Wilfrid Wangon Zekou <wangonwil@gmail.com>, Jennifer Josephine Hardt <jennifer.hardt@dkfz-heidelberg.de>
6
6
  Maintainer-email: Niklas Wahl <n.wahl@dkfz-heidelberg.de>, Florian Leininger <florian.leininger@dkfz-heidelberg.de>, Tobias Becher <t.becher@dkfz-heidelberg.de>, Tim Ortkamp <tim.ortkamp@kit.edu>
@@ -25,6 +25,8 @@ from pyRadPlan import (
25
25
  plot_multiple_slices,
26
26
  )
27
27
 
28
+ from pyRadPlan.optimization.objectives import SquaredDeviation, SquaredOverdosing, MeanDose
29
+
28
30
  logging.basicConfig(level=logging.INFO)
29
31
 
30
32
  # %%
@@ -41,9 +43,19 @@ pln.prop_dose_calc = {"calc_bio_dose": True, "dose_grid": {"resolution": {"x": 3
41
43
 
42
44
  pln.prop_opt = {"solver": "scipy"}
43
45
 
46
+ # Optimization
47
+ cst.vois[0].objectives = [SquaredOverdosing(priority=10.0, d_max=1.0)] # OAR
48
+ cst.vois[1].objectives = [SquaredDeviation(priority=100.0, d_ref=3.0)] # Target
49
+ cst.vois[2].objectives = [
50
+ MeanDose(priority=1.0, d_ref=0.0),
51
+ SquaredOverdosing(priority=10.0, d_max=2.0),
52
+ ] # BODY
53
+
54
+ # %%
44
55
  # Generate Steering Geometry ("stf")
45
56
  stf = generate_stf(ct, cst, pln)
46
57
 
58
+ # %%
47
59
  # Calculate Dose Influence Matrix ("dij")
48
60
  dij = calc_dose_influence(ct, cst, stf, pln)
49
61
 
@@ -64,10 +76,12 @@ view_slice = [int(np.round(ct.size[2] / 2))]
64
76
  plot_multiple_slices(
65
77
  image_volume=ct,
66
78
  cst=cst,
67
- overlays=[result["effect"], result["physical_dose"]],
79
+ overlays=[result["effect"], result["physical_dose"], result["rbe_x_dose"], result["rbe"]],
68
80
  view_slice=view_slice,
69
81
  plane="axial",
70
- overlay_unit=["dimensionless", "Gy"],
71
- overlay_titles=["Biological Effect", "Physical Dose"],
82
+ overlay_unit=["1", "Gy", "Gy", "1"],
83
+ overlay_titles=["Biological Effect", "Physical Dose", "RBE x Dose", "RBE"],
72
84
  show_plot=True,
73
85
  )
86
+
87
+ # %%
@@ -489,7 +489,7 @@ def _convert_scipy_sparse_for_namespace(
489
489
  """Convert a scipy sparse matrix to be compatible with a new array namespace."""
490
490
 
491
491
  if not keep_sparse_compat:
492
- return to_namespace(xp_new, sparray.todense(), device=device)
492
+ return to_namespace(xp_new, sparray.toarray(), device=device)
493
493
 
494
494
  fmt = sparray.format
495
495
  # For now, we always go the coo route
@@ -557,7 +557,7 @@ def _convert_cupy_sparse_for_namespace(
557
557
  return sparray # No conversion needed
558
558
 
559
559
  if not keep_sparse_compat:
560
- return to_namespace(xp_new, sparray.todense(), device=device)
560
+ return to_namespace(xp_new, sparray.toarray(), device=device)
561
561
 
562
562
  if array_api_compat.is_numpy_namespace(
563
563
  xp_new
@@ -440,6 +440,8 @@ class PencilBeamEngineAbstract(DoseEngineBase):
440
440
  )
441
441
  for ray in beam_info["beam"]["rays"]:
442
442
  for key in ["ray_pos", "ray_pos_bev", "target_point", "target_point_bev"]:
443
+ if ray[key] is None:
444
+ continue
443
445
  if array_api_compat.is_array_api_obj(ray[key]):
444
446
  ray[key] = to_namespace(xp, ray[key], device=self.device)
445
447
  else:
@@ -162,6 +162,14 @@ def _build_overlay_meta(
162
162
  "let_beam": ("LET", "keV/\u00b5m"),
163
163
  "effect": ("Effect", ""),
164
164
  "effect_beam": ("Effect", ""),
165
+ "rbe_x_dose": ("RBE-weighted Dose", "Gy (RBE)"),
166
+ "rbe_x_dose_beam": ("RBE-weighted Dose", "Gy (RBE)"),
167
+ "alpha_dose": ("Alpha Dose", "Gy"),
168
+ "alpha_dose_beam": ("Alpha Dose", "Gy"),
169
+ "sqrt_beta_dose": ("Sqrt(Beta) Dose", "Gy\u00bd"),
170
+ "sqrt_beta_dose_beam": ("Sqrt(Beta) Dose", "Gy\u00bd"),
171
+ "let_dose": ("LET\u00b7Dose", "Gy\u00b7keV/\u00b5m"),
172
+ "let_dose_beam": ("LET\u00b7Dose", "Gy\u00b7keV/\u00b5m"),
165
173
  }
166
174
 
167
175
  overlay_units: dict[str, str] = {}
@@ -89,6 +89,7 @@ def plot_multiple_slices(
89
89
  save_filename = kwargs.get("save_filename", None)
90
90
  show_plot = kwargs.get("show_plot", True)
91
91
  overlay_titles = kwargs.get("overlay_titles", None)
92
+ overlay_window = kwargs.get("overlay_window", None)
92
93
 
93
94
  if image_volume is None and overlays is None:
94
95
  raise ValueError("At least one of 'image_volume' or 'overlays' must be provided.")
@@ -126,6 +127,7 @@ def plot_multiple_slices(
126
127
  "overlay_unit": overlay_unit[i],
127
128
  "show_plot": False,
128
129
  "ax": axes[i, j],
130
+ "overlay_window": overlay_window[i] if overlay_window else None,
129
131
  }
130
132
  )
131
133
  # Remove arguments that are not in plot_slice kwargs or handled explicitly
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyRadPlan
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: A python interface and reimplementation to matRad
5
5
  Author-email: Niklas Wahl <n.wahl@dkfz-heidelberg.de>, Tobias Becher <t.becher@dkfz-heidelberg.de>, Lina Bucher <lina.bucher@dkfz-heidelberg.de>, Louis Ermeneux <louis.ermeneux@gmail.com>, Antonios Kontopoulos <antonios.kontopoulos@dkfz-heidelberg.de>, Julius Laub <julius.laub@dkfz-heidelberg.de>, Florian Leininger <florian.leininger@dkfz-heidelberg.de>, Tim Ortkamp <tim.ortkamp@kit.edu>, Victoria Santiago Aguilar <victoria.santiagoaguilar@dkfz-heidelberg.de>, Goran Stanic <goran.stanic@dkfz-heidelberg.de>, Samir Schulz <samirshivaji.schulz@dkfz-heidelberg.de>, Wilfrid Wangon Zekou <wangonwil@gmail.com>, Jennifer Josephine Hardt <jennifer.hardt@dkfz-heidelberg.de>
6
6
  Maintainer-email: Niklas Wahl <n.wahl@dkfz-heidelberg.de>, Florian Leininger <florian.leininger@dkfz-heidelberg.de>, Tobias Becher <t.becher@dkfz-heidelberg.de>, Tim Ortkamp <tim.ortkamp@kit.edu>
@@ -10,7 +10,7 @@ pyRadPlan = ["data/**/*"]
10
10
 
11
11
  [project]
12
12
  name = "pyRadPlan"
13
- version = "0.4.0"
13
+ version = "0.4.1"
14
14
  # dynamic = ["version"] # Will be used in the future
15
15
  authors = [
16
16
  { name="Niklas Wahl", email = "n.wahl@dkfz-heidelberg.de"},
File without changes
File without changes
File without changes
File without changes
File without changes