pyRadPlan 0.3.2__tar.gz → 0.3.3__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 (208) hide show
  1. {pyradplan-0.3.2/pyRadPlan.egg-info → pyradplan-0.3.3}/PKG-INFO +2 -1
  2. pyradplan-0.3.3/benchmark/bench_trace_cubes.py +109 -0
  3. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/raytracer/_base.py +8 -3
  4. {pyradplan-0.3.2 → pyradplan-0.3.3/pyRadPlan.egg-info}/PKG-INFO +2 -1
  5. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan.egg-info/SOURCES.txt +1 -0
  6. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan.egg-info/requires.txt +1 -0
  7. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan.egg-info/top_level.txt +1 -0
  8. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyproject.toml +2 -2
  9. {pyradplan-0.3.2 → pyradplan-0.3.3}/LICENSE +0 -0
  10. {pyradplan-0.3.2 → pyradplan-0.3.3}/README.md +0 -0
  11. {pyradplan-0.3.2 → pyradplan-0.3.3}/docs/conf.py +0 -0
  12. {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/intro_minimal_photons.py +0 -0
  13. {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/intro_minimal_protons.py +0 -0
  14. {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/mc_fred.py +0 -0
  15. {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/pencilbeam_carbon.py +0 -0
  16. {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/pencilbeam_helium.py +0 -0
  17. {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/pencilbeam_photon.py +0 -0
  18. {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/pencilbeam_photon_forward.py +0 -0
  19. {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/pencilbeam_proton.py +0 -0
  20. {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/pencilbeam_proton_let.py +0 -0
  21. {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/pencilbeam_vhee.py +0 -0
  22. {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/proton_mimicking.py +0 -0
  23. {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/raytracer_rad_depth.py +0 -0
  24. {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/utils_matrad.py +0 -0
  25. {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/utils_plotting.py +0 -0
  26. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/__init__.py +0 -0
  27. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/analysis/__init__.py +0 -0
  28. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/analysis/_dvh.py +0 -0
  29. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/__init__.py +0 -0
  30. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/_exceptions.py +0 -0
  31. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/_grids.py +0 -0
  32. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/datamodel.py +0 -0
  33. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/np2sitk.py +0 -0
  34. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/resample.py +0 -0
  35. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/xp_utils/__init__.py +0 -0
  36. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/xp_utils/compat.py +0 -0
  37. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/xp_utils/helpers.py +0 -0
  38. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/xp_utils/typing.py +0 -0
  39. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/cst/__init__.py +0 -0
  40. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/cst/_cst.py +0 -0
  41. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/cst/_voi.py +0 -0
  42. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/ct/__init__.py +0 -0
  43. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/ct/_ct.py +0 -0
  44. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/ct/_hlut.py +0 -0
  45. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/data/machines/VHEE_Focused.mat +0 -0
  46. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/data/machines/VHEE_Generic.mat +0 -0
  47. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/data/machines/carbon_Generic.mat +0 -0
  48. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/data/machines/helium_Generic.mat +0 -0
  49. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/data/machines/photons_Generic.mat +0 -0
  50. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/data/machines/protons_Generic.mat +0 -0
  51. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/data/phantoms/TG119.mat +0 -0
  52. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dij/__init__.py +0 -0
  53. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dij/_compose_beam_dijs.py +0 -0
  54. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dij/_dij.py +0 -0
  55. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/__init__.py +0 -0
  56. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/_calc_dose.py +0 -0
  57. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/__init__.py +0 -0
  58. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_base.py +0 -0
  59. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_base_montecarlo.py +0 -0
  60. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_base_pencilbeam.py +0 -0
  61. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_base_pencilbeam_particle.py +0 -0
  62. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_factory.py +0 -0
  63. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_fredmc.py +0 -0
  64. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_hongpb.py +0 -0
  65. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_svdpb.py +0 -0
  66. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/geometry/__init__.py +0 -0
  67. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/geometry/lps.py +0 -0
  68. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/io/__init__.py +0 -0
  69. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/io/_matlab_file_handler.py +0 -0
  70. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/io/_patient_loader.py +0 -0
  71. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/io/matfile.py +0 -0
  72. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/__init__.py +0 -0
  73. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/_load.py +0 -0
  74. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/_validate.py +0 -0
  75. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/base/__init__.py +0 -0
  76. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/base/_base.py +0 -0
  77. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/base/_beam_modifier.py +0 -0
  78. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/base/_external_beam.py +0 -0
  79. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/base/_factory.py +0 -0
  80. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/base/_internal_beam.py +0 -0
  81. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/__init__.py +0 -0
  82. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/_base.py +0 -0
  83. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/_beam_cutoff.py +0 -0
  84. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/_beam_emittance.py +0 -0
  85. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/_beam_energy.py +0 -0
  86. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/_beam_focus.py +0 -0
  87. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/_ions.py +0 -0
  88. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/_vhee.py +0 -0
  89. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/kernel/__init__.py +0 -0
  90. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/kernel/_base.py +0 -0
  91. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/kernel/_ions.py +0 -0
  92. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/kernel/_vhee.py +0 -0
  93. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/photons/__init__.py +0 -0
  94. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/photons/_base.py +0 -0
  95. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/photons/_calculate_machine_scale.py +0 -0
  96. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/photons/_linac.py +0 -0
  97. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/photons/_svd_kernel.py +0 -0
  98. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/matRad/__init__.py +0 -0
  99. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/matRad/_engine.py +0 -0
  100. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/matRad/_matlab.py +0 -0
  101. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/matRad/_octave.py +0 -0
  102. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/__init__.py +0 -0
  103. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/_fluence_optimization.py +0 -0
  104. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/__init__.py +0 -0
  105. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_eud.py +0 -0
  106. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_factory.py +0 -0
  107. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_max_dvh.py +0 -0
  108. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_mean.py +0 -0
  109. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_min_dvh.py +0 -0
  110. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_objective.py +0 -0
  111. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_squared_dev.py +0 -0
  112. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_squared_mimicking.py +0 -0
  113. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_squared_over.py +0 -0
  114. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_squared_under.py +0 -0
  115. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_std.py +0 -0
  116. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/problems/__init__.py +0 -0
  117. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/problems/_factory.py +0 -0
  118. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/problems/_nonlin_fluence.py +0 -0
  119. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/problems/_optiprob.py +0 -0
  120. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/problems/_simple_least_squares.py +0 -0
  121. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/solvers/__init__.py +0 -0
  122. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/solvers/_base_solvers.py +0 -0
  123. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/solvers/_factory.py +0 -0
  124. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/solvers/_ipopt.py +0 -0
  125. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/solvers/_scipy_solver.py +0 -0
  126. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/plan/__init__.py +0 -0
  127. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/plan/_plans.py +0 -0
  128. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/quantities/__init__.py +0 -0
  129. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/quantities/_base.py +0 -0
  130. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/quantities/_dose.py +0 -0
  131. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/quantities/_let_x_dose.py +0 -0
  132. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/raytracer/__init__.py +0 -0
  133. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/raytracer/_numba_perf.py +0 -0
  134. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/raytracer/_siddon.py +0 -0
  135. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/scenarios/__init__.py +0 -0
  136. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/scenarios/_base.py +0 -0
  137. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/scenarios/_nominal.py +0 -0
  138. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/__init__.py +0 -0
  139. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/_beam.py +0 -0
  140. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/_beamlet.py +0 -0
  141. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/_exceptions.py +0 -0
  142. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/_generate_stf.py +0 -0
  143. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/_rangeshifter.py +0 -0
  144. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/_ray.py +0 -0
  145. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/_steeringinformation.py +0 -0
  146. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/generators/__init__.py +0 -0
  147. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/generators/_base.py +0 -0
  148. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/generators/_externalbeam.py +0 -0
  149. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/generators/_factory.py +0 -0
  150. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/generators/_ions.py +0 -0
  151. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/generators/_photons.py +0 -0
  152. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/generators/_vhee.py +0 -0
  153. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/util/__init__.py +0 -0
  154. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/util/helpers.py +0 -0
  155. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/util/keyboard_listener.py +0 -0
  156. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/visualization/__init__.py +0 -0
  157. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/visualization/_plot_multiple_slices.py +0 -0
  158. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/visualization/_plot_slice.py +0 -0
  159. {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan.egg-info/dependency_links.txt +0 -0
  160. {pyradplan-0.3.2 → pyradplan-0.3.3}/setup.cfg +0 -0
  161. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/analysis/test_dvh.py +0 -0
  162. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/analysis/test_qi.py +0 -0
  163. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/compute/test_math_interp1d.py +0 -0
  164. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/compute/test_math_quantile.py +0 -0
  165. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/compute/test_namespace_conversion.py +0 -0
  166. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/conftest.py +0 -0
  167. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/core/test_coordinates.py +0 -0
  168. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/core/test_datamodel.py +0 -0
  169. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/core/test_np2sitk.py +0 -0
  170. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/core/test_resample.py +0 -0
  171. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/cst/conftest.py +0 -0
  172. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/cst/test_VOI.py +0 -0
  173. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/cst/test_cst.py +0 -0
  174. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/ct/test_ct.py +0 -0
  175. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/ct/test_hlut.py +0 -0
  176. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/data/test_validate_test_data.py +0 -0
  177. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/dose/conftest.py +0 -0
  178. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/dose/test_dose_engine_base.py +0 -0
  179. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/dose/test_factory.py +0 -0
  180. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/dose/test_fred.py +0 -0
  181. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/dose/test_hongpb.py +0 -0
  182. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/dose/test_pb_geodist.py +0 -0
  183. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/dose/test_svdpb.py +0 -0
  184. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/geometry/test_lps.py +0 -0
  185. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/machines/test_beam_modifiers.py +0 -0
  186. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/optimization/test_fluence_optiprob.py +0 -0
  187. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/optimization/test_ipopt_solver.py +0 -0
  188. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/optimization/test_objectives.py +0 -0
  189. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/optimization/test_problem_factory.py +0 -0
  190. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/optimization/test_scipy_solver.py +0 -0
  191. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/optimization/test_solver_factory.py +0 -0
  192. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/quantities/test_dose_quantity.py +0 -0
  193. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/quantities/test_let_dose_quantity.py +0 -0
  194. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/stf/test_beamlet.py +0 -0
  195. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/stf/test_stf.py +0 -0
  196. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/stf/test_stf_gen.py +0 -0
  197. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_dij.py +0 -0
  198. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_fileHandling.py +0 -0
  199. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_grid.py +0 -0
  200. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_helpers.py +0 -0
  201. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_machine_model.py +0 -0
  202. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_matlabEngine.py +0 -0
  203. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_octaveEngine.py +0 -0
  204. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_plan.py +0 -0
  205. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_raytracersiddon.py +0 -0
  206. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_scenarios.py +0 -0
  207. {pyradplan-0.3.2 → pyradplan-0.3.3}/test/visualization/test_plot_multiple_slices.py +0 -0
  208. {pyradplan-0.3.2 → pyradplan-0.3.3}/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.3.2
3
+ Version: 0.3.3
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>, 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>
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>
@@ -39,6 +39,7 @@ Provides-Extra: dev
39
39
  Requires-Dist: pytest; extra == "dev"
40
40
  Requires-Dist: coverage; extra == "dev"
41
41
  Requires-Dist: pytest-cov; extra == "dev"
42
+ Requires-Dist: pytest-benchmark; extra == "dev"
42
43
  Requires-Dist: pre-commit; extra == "dev"
43
44
  Requires-Dist: sphinx; extra == "dev"
44
45
  Requires-Dist: numpydoc; extra == "dev"
@@ -0,0 +1,109 @@
1
+ """Benchmarks for RayTracerSiddon.trace_cubes with varying image resolutions."""
2
+
3
+ import numpy as np
4
+ import pytest
5
+ import SimpleITK as sitk
6
+
7
+ from pyRadPlan.raytracer import RayTracerSiddon
8
+ from pyRadPlan.stf._beam import Beam
9
+ from pyRadPlan.stf._ray import Ray
10
+ from pyRadPlan.stf._beamlet import Beamlet
11
+
12
+
13
+ # ---------------------------------------------------------------------------
14
+ # Helpers
15
+ # ---------------------------------------------------------------------------
16
+
17
+
18
+ def _make_cube(size, spacing, origin=None):
19
+ """Create a uniform-density SimpleITK image (density = 1.0 ~ water)."""
20
+ arr = np.ones(size[::-1], dtype=np.float32) # sitk expects (z, y, x)
21
+ image = sitk.GetImageFromArray(arr)
22
+ image.SetSpacing([float(s) for s in spacing])
23
+ if origin is None:
24
+ # Centre the cube around the origin
25
+ origin = [-0.5 * (n - 1) * s for n, s in zip(size, spacing)]
26
+ image.SetOrigin(origin)
27
+ return image
28
+
29
+
30
+ def _make_beam(iso_center, n_rays=1, sad=1000.0, gantry_angle=0.0):
31
+ """Build a minimal Beam object suitable for trace_cubes."""
32
+ # Spread rays in a small grid around the isocenter in BEV (x, y=0, z)
33
+ side = int(np.ceil(np.sqrt(n_rays)))
34
+ offsets = np.linspace(-10, 10, side)
35
+ rays = []
36
+ count = 0
37
+ for x in offsets:
38
+ for z in offsets:
39
+ if count >= n_rays:
40
+ break
41
+ ray_pos_bev = np.array([x, 0.0, z])
42
+ ray_pos = ray_pos_bev.copy() # simplified – gantry 0 means BEV ≈ LPS
43
+ rays.append(
44
+ Ray(
45
+ rayPos_bev=ray_pos_bev,
46
+ ray_pos=ray_pos,
47
+ beamlets=[Beamlet(energy=100.0)],
48
+ )
49
+ )
50
+ count += 1
51
+ if count >= n_rays:
52
+ break
53
+
54
+ return Beam(
55
+ gantry_angle=gantry_angle,
56
+ couch_angle=0.0,
57
+ iso_center=np.array(iso_center, dtype=np.float64),
58
+ rays=rays,
59
+ SAD=sad,
60
+ )
61
+
62
+
63
+ # ---------------------------------------------------------------------------
64
+ # Parametrised image configurations
65
+ # ---------------------------------------------------------------------------
66
+
67
+ # (label, size_xyz, spacing_xyz) – from small/coarse to large/fine
68
+ IMAGE_CONFIGS = [
69
+ ("small_coarse__50x50x50_sp5", (50, 50, 50), (5.0, 5.0, 5.0)),
70
+ ("medium_coarse__100x100x50_sp3", (200, 200, 80), (3.0, 3.0, 3.0)),
71
+ ("medium_fine__100x100x50_sp1", (200, 200, 80), (1.0, 1.0, 2.0)),
72
+ ("large_coarse__200x200x100_sp3", (512, 512, 128), (3.0, 3.0, 3.0)),
73
+ ("large_fine__200x200x100_sp1", (512, 512, 128), (1.0, 1.0, 2.0)),
74
+ ]
75
+
76
+
77
+ # ---------------------------------------------------------------------------
78
+ # Fixtures
79
+ # ---------------------------------------------------------------------------
80
+
81
+
82
+ @pytest.fixture(params=IMAGE_CONFIGS, ids=[c[0] for c in IMAGE_CONFIGS])
83
+ def raytracer_and_beam(request):
84
+ """Yield a (RayTracerSiddon, Beam) pair for each image configuration."""
85
+ label, size, spacing = request.param
86
+ cube = _make_cube(size, spacing)
87
+ iso_center = cube.TransformContinuousIndexToPhysicalPoint([s / 2.0 for s in size])
88
+ rt = RayTracerSiddon(cube)
89
+ rt.lateral_cut_off = 50.0
90
+ beam = _make_beam(iso_center, n_rays=4)
91
+ return rt, beam
92
+
93
+
94
+ # ---------------------------------------------------------------------------
95
+ # Benchmarks
96
+ # ---------------------------------------------------------------------------
97
+
98
+
99
+ def test_trace_cubes(benchmark, raytracer_and_beam):
100
+ """Benchmark trace_cubes for different image resolutions."""
101
+ rt, beam = raytracer_and_beam
102
+ # Use few rounds/iterations – raytracing can be expensive for large images.
103
+ benchmark.pedantic(
104
+ rt.trace_cubes,
105
+ args=(beam,),
106
+ rounds=3,
107
+ iterations=1,
108
+ warmup_rounds=1,
109
+ )
@@ -227,7 +227,9 @@ class RayTracerBase(ABC):
227
227
  logger.debug("Cube ray tracing took %s seconds...", t_trace_end - t_trace_start)
228
228
 
229
229
  # Now we compute which rays will respectively give the voxel value for radiological depth
230
- valid_ix = np.isfinite(ix)
230
+ # We don't want -1 to be counted as "valid"
231
+ # or else the coords[ix[valid_ix], 1] silently reads the last elemtn
232
+ valid_ix = ix >= 0 # & np.isfinite(ix)
231
233
 
232
234
  scale_factor = np.zeros_like(ix, dtype=self.precision)
233
235
  scale_factor[valid_ix] = (ray_matrix_bev_y + beam.sad) / coords[ix[valid_ix], 1]
@@ -262,8 +264,11 @@ class RayTracerBase(ABC):
262
264
  ]
263
265
 
264
266
  for i, cube in enumerate(rad_depth_cubes):
265
- rel_depths = lengths * rho[i]
266
- rel_depths = np.cumsum(rel_depths, axis=1) - rel_depths / 2.0
267
+ segment_depths = lengths * rho[i]
268
+ # Replace NaN with 0 before cumsum to prevent a single invalid voxel
269
+ # np.cumsum([[0.5, 0.33, NaN, 0.18, 0.22]]) -> [0.5, 0.83, NaN, NaN, NaN], which is bad
270
+ segment_depths = np.where(np.isfinite(segment_depths), segment_depths, 0.0)
271
+ rel_depths = np.cumsum(segment_depths, axis=1) - segment_depths / 2.0
267
272
 
268
273
  try:
269
274
  ix_assign = np.unravel_index(ix[ix_remember_from_tracing], cube.shape, order="F")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyRadPlan
3
- Version: 0.3.2
3
+ Version: 0.3.3
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>, 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>
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>
@@ -39,6 +39,7 @@ Provides-Extra: dev
39
39
  Requires-Dist: pytest; extra == "dev"
40
40
  Requires-Dist: coverage; extra == "dev"
41
41
  Requires-Dist: pytest-cov; extra == "dev"
42
+ Requires-Dist: pytest-benchmark; extra == "dev"
42
43
  Requires-Dist: pre-commit; extra == "dev"
43
44
  Requires-Dist: sphinx; extra == "dev"
44
45
  Requires-Dist: numpydoc; extra == "dev"
@@ -1,6 +1,7 @@
1
1
  LICENSE
2
2
  README.md
3
3
  pyproject.toml
4
+ benchmark/bench_trace_cubes.py
4
5
  docs/conf.py
5
6
  examples/intro_minimal_photons.py
6
7
  examples/intro_minimal_protons.py
@@ -19,6 +19,7 @@ pint>=0.24.0
19
19
  pytest
20
20
  coverage
21
21
  pytest-cov
22
+ pytest-benchmark
22
23
  pre-commit
23
24
  sphinx
24
25
  numpydoc
@@ -1,3 +1,4 @@
1
+ benchmark
1
2
  dist
2
3
  docs
3
4
  examples
@@ -10,7 +10,7 @@ pyRadPlan = ["data/**/*"]
10
10
 
11
11
  [project]
12
12
  name = "pyRadPlan"
13
- version = "0.3.2"
13
+ version = "0.3.3"
14
14
  # dynamic = ["version"] # Will be used in the future
15
15
  authors = [
16
16
  { name="Niklas Wahl", email = "n.wahl@dkfz-heidelberg.de"},
@@ -67,7 +67,7 @@ octave = ["oct2py"]
67
67
  gui = ["PyQt5"]
68
68
  numba = ["numba>=0.61.0"]
69
69
 
70
- dev = ["pytest","coverage","pytest-cov","pre-commit","sphinx","numpydoc","pydata-sphinx-theme","sphinx-design","autodoc_pydantic","sphinx-autodoc-typehints"]
70
+ dev = ["pytest","coverage","pytest-cov","pytest-benchmark","pre-commit","sphinx","numpydoc","pydata-sphinx-theme","sphinx-design","autodoc_pydantic","sphinx-autodoc-typehints"]
71
71
 
72
72
  [project.urls]
73
73
  "Homepage" = "https://git.dkfz.de"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes