pyRadPlan 0.2.5__tar.gz → 0.2.7__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 (163) hide show
  1. {pyradplan-0.2.5/pyRadPlan.egg-info → pyradplan-0.2.7}/PKG-INFO +1 -1
  2. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/ct/_ct.py +6 -6
  3. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/raytracer/_base.py +25 -2
  4. {pyradplan-0.2.5 → pyradplan-0.2.7/pyRadPlan.egg-info}/PKG-INFO +1 -1
  5. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyproject.toml +1 -1
  6. {pyradplan-0.2.5 → pyradplan-0.2.7}/LICENSE +0 -0
  7. {pyradplan-0.2.5 → pyradplan-0.2.7}/README.md +0 -0
  8. {pyradplan-0.2.5 → pyradplan-0.2.7}/docs/conf.py +0 -0
  9. {pyradplan-0.2.5 → pyradplan-0.2.7}/examples/carbon_pencilbeam.py +0 -0
  10. {pyradplan-0.2.5 → pyradplan-0.2.7}/examples/helium_pencilbeam.py +0 -0
  11. {pyradplan-0.2.5 → pyradplan-0.2.7}/examples/import_matrad_patient.py +0 -0
  12. {pyradplan-0.2.5 → pyradplan-0.2.7}/examples/photon_pencilbeam.py +0 -0
  13. {pyradplan-0.2.5 → pyradplan-0.2.7}/examples/proton_let_optimization.py +0 -0
  14. {pyradplan-0.2.5 → pyradplan-0.2.7}/examples/proton_pencilbeam.py +0 -0
  15. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/__init__.py +0 -0
  16. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/analysis/__init__.py +0 -0
  17. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/analysis/_dvh.py +0 -0
  18. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/core/__init__.py +0 -0
  19. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/core/_exceptions.py +0 -0
  20. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/core/_grids.py +0 -0
  21. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/core/datamodel.py +0 -0
  22. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/core/np2sitk.py +0 -0
  23. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/core/resample.py +0 -0
  24. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/cst/__init__.py +0 -0
  25. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/cst/_cst.py +0 -0
  26. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/cst/_voi.py +0 -0
  27. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/ct/__init__.py +0 -0
  28. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/ct/_hlut.py +0 -0
  29. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/data/machines/carbon_Generic.mat +0 -0
  30. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/data/machines/helium_Generic.mat +0 -0
  31. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/data/machines/photons_Generic.mat +0 -0
  32. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/data/machines/protons_Generic.mat +0 -0
  33. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/data/phantoms/TG119.mat +0 -0
  34. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/data/stf/matRad_stf.mat +0 -0
  35. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/data/stf/matRad_stf_onebeam.mat +0 -0
  36. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/data/stf/matrad_stf_onebeam.mat +0 -0
  37. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/dij/__init__.py +0 -0
  38. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/dij/_compose_beam_dijs.py +0 -0
  39. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/dij/_dij.py +0 -0
  40. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/dose/__init__.py +0 -0
  41. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/dose/_calc_dose.py +0 -0
  42. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/dose/engines/__init__.py +0 -0
  43. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/dose/engines/_base.py +0 -0
  44. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/dose/engines/_base_pencilbeam.py +0 -0
  45. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/dose/engines/_base_pencilbeam_particle.py +0 -0
  46. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/dose/engines/_factory.py +0 -0
  47. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/dose/engines/_hongpb.py +0 -0
  48. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/dose/engines/_svdpb.py +0 -0
  49. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/geometry/__init__.py +0 -0
  50. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/geometry/lps.py +0 -0
  51. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/io/__init__.py +0 -0
  52. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/io/_matlab_file_handler.py +0 -0
  53. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/io/_patient_loader.py +0 -0
  54. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/io/matfile.py +0 -0
  55. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/machines/__init__.py +0 -0
  56. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/machines/_base.py +0 -0
  57. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/machines/_ions.py +0 -0
  58. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/machines/_load.py +0 -0
  59. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/machines/_photons.py +0 -0
  60. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/machines/_validate.py +0 -0
  61. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/matRad/__init__.py +0 -0
  62. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/matRad/_engine.py +0 -0
  63. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/matRad/_matlab.py +0 -0
  64. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/matRad/_octave.py +0 -0
  65. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/__init__.py +0 -0
  66. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/_fluence_optimization.py +0 -0
  67. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/objectives/__init__.py +0 -0
  68. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/objectives/_eud.py +0 -0
  69. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/objectives/_factory.py +0 -0
  70. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/objectives/_max_dvh.py +0 -0
  71. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/objectives/_mean.py +0 -0
  72. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/objectives/_min_dvh.py +0 -0
  73. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/objectives/_objective.py +0 -0
  74. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/objectives/_squared_dev.py +0 -0
  75. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/objectives/_squared_over.py +0 -0
  76. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/objectives/_squared_under.py +0 -0
  77. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/objectives/_std.py +0 -0
  78. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/problems/__init__.py +0 -0
  79. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/problems/_factory.py +0 -0
  80. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/problems/_nonlin_fluence.py +0 -0
  81. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/problems/_optiprob.py +0 -0
  82. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/problems/_simple_least_squares.py +0 -0
  83. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/solvers/__init__.py +0 -0
  84. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/solvers/_base_solvers.py +0 -0
  85. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/solvers/_factory.py +0 -0
  86. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/solvers/_ipopt.py +0 -0
  87. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/optimization/solvers/_scipy_solver.py +0 -0
  88. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/plan/__init__.py +0 -0
  89. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/plan/_plans.py +0 -0
  90. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/quantities/__init__.py +0 -0
  91. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/quantities/_base.py +0 -0
  92. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/quantities/_dose.py +0 -0
  93. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/quantities/_let_x_dose.py +0 -0
  94. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/raytracer/__init__.py +0 -0
  95. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/raytracer/_perf.py +0 -0
  96. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/raytracer/_siddon.py +0 -0
  97. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/scenarios/__init__.py +0 -0
  98. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/scenarios/_base.py +0 -0
  99. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/scenarios/_nominal.py +0 -0
  100. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/stf/__init__.py +0 -0
  101. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/stf/_beam.py +0 -0
  102. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/stf/_beamlet.py +0 -0
  103. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/stf/_exceptions.py +0 -0
  104. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/stf/_generate_stf.py +0 -0
  105. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/stf/_rangeshifter.py +0 -0
  106. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/stf/_ray.py +0 -0
  107. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/stf/_steeringinformation.py +0 -0
  108. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/stf/generators/__init__.py +0 -0
  109. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/stf/generators/_base.py +0 -0
  110. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/stf/generators/_externalbeam.py +0 -0
  111. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/stf/generators/_factory.py +0 -0
  112. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/stf/generators/_ions.py +0 -0
  113. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/stf/generators/_photons.py +0 -0
  114. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/util/__init__.py +0 -0
  115. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/util/helpers.py +0 -0
  116. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/visualization/__init__.py +0 -0
  117. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan/visualization/_plot_slice.py +0 -0
  118. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan.egg-info/SOURCES.txt +0 -0
  119. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan.egg-info/dependency_links.txt +0 -0
  120. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan.egg-info/requires.txt +0 -0
  121. {pyradplan-0.2.5 → pyradplan-0.2.7}/pyRadPlan.egg-info/top_level.txt +0 -0
  122. {pyradplan-0.2.5 → pyradplan-0.2.7}/setup.cfg +0 -0
  123. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/analysis/test_dvh.py +0 -0
  124. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/analysis/test_qi.py +0 -0
  125. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/conftest.py +0 -0
  126. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/core/test_coordinates.py +0 -0
  127. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/core/test_datamodel.py +0 -0
  128. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/core/test_np2sitk.py +0 -0
  129. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/core/test_resample.py +0 -0
  130. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/cst/conftest.py +0 -0
  131. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/cst/test_VOI.py +0 -0
  132. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/cst/test_cst.py +0 -0
  133. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/ct/test_ct.py +0 -0
  134. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/ct/test_hlut.py +0 -0
  135. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/data/test_validate_test_data.py +0 -0
  136. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/dose/conftest.py +0 -0
  137. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/dose/test_dose_engine_base.py +0 -0
  138. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/dose/test_factory.py +0 -0
  139. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/dose/test_hongpb.py +0 -0
  140. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/dose/test_svdpb.py +0 -0
  141. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/geometry/test_lps.py +0 -0
  142. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/optimization/test_fluence_optiprob.py +0 -0
  143. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/optimization/test_ipopt_solver.py +0 -0
  144. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/optimization/test_objectives.py +0 -0
  145. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/optimization/test_problem_factory.py +0 -0
  146. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/optimization/test_scipy_solver.py +0 -0
  147. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/optimization/test_solver_factory.py +0 -0
  148. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/quantities/test_dose_quantity.py +0 -0
  149. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/quantities/test_let_dose_quantity.py +0 -0
  150. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/stf/test_beamlet.py +0 -0
  151. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/stf/test_stf.py +0 -0
  152. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/stf/test_stf_gen.py +0 -0
  153. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/test_dij.py +0 -0
  154. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/test_fileHandling.py +0 -0
  155. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/test_grid.py +0 -0
  156. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/test_helpers.py +0 -0
  157. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/test_machine_model.py +0 -0
  158. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/test_matlabEngine.py +0 -0
  159. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/test_octaveEngine.py +0 -0
  160. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/test_plan.py +0 -0
  161. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/test_raytracersiddon.py +0 -0
  162. {pyradplan-0.2.5 → pyradplan-0.2.7}/test/test_scenarios.py +0 -0
  163. {pyradplan-0.2.5 → pyradplan-0.2.7}/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.2.5
3
+ Version: 0.2.7
4
4
  Summary: A python interface and reimplementation to matRad
5
5
  Author-email: Niklas Wahl <n.wahl@dkfz-heidelberg.de>, Goran Stanic <goran.stanic@dkfz-heidelberg.de>, Tim Ortkamp <tim.ortkamp@kit.edu>, Tobias Becher <t.becher@dkfz-heidelberg.de>, Lina Bucher <lina.bucher@dkfz-heidelberg.de>, Florian Leininger <florian.leininger@dkfz-heidelberg.de>, Antonios Kontopoulos <antonios.kontopoulos@dkfz-heidelberg.de>
6
6
  Maintainer-email: Niklas Wahl <n.wahl@dkfz-heidelberg.de>, Goran Stanic <goran.stanic@dkfz-heidelberg.de>, Tim Ortkamp <tim.ortkamp@kit.edu>, Tobias Becher <t.becher@dkfz-heidelberg.de>
@@ -149,7 +149,12 @@ class CT(PyRadPlanBaseModel, ABC):
149
149
  # TODO: Either set up a Grid or check for x/y/z to do the data management
150
150
  if "origin" in data:
151
151
  data["cube_hu"].SetOrigin(data["origin"])
152
-
152
+ elif all(key in data for key in ("x", "y", "z")):
153
+ # If x, y, z are present, we set the origin to the first voxel
154
+ origin = np.array([data["x"][0], data["y"][0], data["z"][0]], dtype=float)
155
+ if is4d:
156
+ origin = np.append(origin, [0.0])
157
+ data["cube_hu"].SetOrigin(origin)
153
158
  else:
154
159
  data["cube_hu"].SetOrigin(
155
160
  -np.array(data["cube_hu"].GetSize())
@@ -158,11 +163,6 @@ class CT(PyRadPlanBaseModel, ABC):
158
163
  )
159
164
  if is4d:
160
165
  data["cube_hu"].SetOrigin(np.append(data["cube_hu"].GetOrigin(), [0.0]))
161
- # elif all(key in data for key in ("x", "y", "z")):
162
- # origin = np.array([data["x"][0], data["y"][0], data["z"][0]], dtype=float)
163
- # if is4d:
164
- # origin = np.append(origin, [0.0])
165
- # data["cube_hu"].SetOrigin(origin)
166
166
  return data
167
167
 
168
168
  @computed_field
@@ -263,8 +263,31 @@ class RayTracerBase(ABC):
263
263
  for i, cube in enumerate(rad_depth_cubes):
264
264
  rel_depths = lengths * rho[i]
265
265
  rel_depths = np.cumsum(rel_depths, axis=1) - rel_depths / 2.0
266
- ix_assign = np.unravel_index(ix[ix_remember_from_tracing], cube.shape, order="F")
267
- cube[ix_assign] = rel_depths[ix_remember_from_tracing]
266
+
267
+ try:
268
+ ix_assign = np.unravel_index(ix[ix_remember_from_tracing], cube.shape, order="F")
269
+ except (ValueError, IndexError):
270
+ logger.error(
271
+ "Error in unraveling indices from raytracing. Trying to recover...",
272
+ exc_info=True,
273
+ )
274
+ tmp_ix = ix[ix_remember_from_tracing]
275
+ rel_depths = rel_depths[ix_remember_from_tracing]
276
+
277
+ wrong_values = np.logical_or(tmp_ix < 0, tmp_ix >= cube.size)
278
+ tmp_ix = tmp_ix[~wrong_values]
279
+ rel_depths = rel_depths[~wrong_values]
280
+
281
+ # Remove the wrong values
282
+ ix_assign = np.unravel_index(tmp_ix, cube.shape, order="F")
283
+ logger.info(
284
+ "Recovered %d indices for radiological depth cube",
285
+ np.count_nonzero(wrong_values),
286
+ )
287
+ cube[ix_assign] = rel_depths
288
+ else:
289
+ cube[ix_assign] = rel_depths[ix_remember_from_tracing]
290
+
268
291
  rad_depth_cubes[i] = sitk.GetImageFromArray(cube)
269
292
  rad_depth_cubes[i].CopyInformation(self.cubes[i])
270
293
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyRadPlan
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary: A python interface and reimplementation to matRad
5
5
  Author-email: Niklas Wahl <n.wahl@dkfz-heidelberg.de>, Goran Stanic <goran.stanic@dkfz-heidelberg.de>, Tim Ortkamp <tim.ortkamp@kit.edu>, Tobias Becher <t.becher@dkfz-heidelberg.de>, Lina Bucher <lina.bucher@dkfz-heidelberg.de>, Florian Leininger <florian.leininger@dkfz-heidelberg.de>, Antonios Kontopoulos <antonios.kontopoulos@dkfz-heidelberg.de>
6
6
  Maintainer-email: Niklas Wahl <n.wahl@dkfz-heidelberg.de>, Goran Stanic <goran.stanic@dkfz-heidelberg.de>, Tim Ortkamp <tim.ortkamp@kit.edu>, Tobias Becher <t.becher@dkfz-heidelberg.de>
@@ -10,7 +10,7 @@ pyRadPlan = ["data/**/*"]
10
10
 
11
11
  [project]
12
12
  name = "pyRadPlan"
13
- version = "0.2.5"
13
+ version = "0.2.7"
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
File without changes
File without changes
File without changes
File without changes