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.
- {pyradplan-0.3.2/pyRadPlan.egg-info → pyradplan-0.3.3}/PKG-INFO +2 -1
- pyradplan-0.3.3/benchmark/bench_trace_cubes.py +109 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/raytracer/_base.py +8 -3
- {pyradplan-0.3.2 → pyradplan-0.3.3/pyRadPlan.egg-info}/PKG-INFO +2 -1
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan.egg-info/SOURCES.txt +1 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan.egg-info/requires.txt +1 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan.egg-info/top_level.txt +1 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyproject.toml +2 -2
- {pyradplan-0.3.2 → pyradplan-0.3.3}/LICENSE +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/README.md +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/docs/conf.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/intro_minimal_photons.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/intro_minimal_protons.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/mc_fred.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/pencilbeam_carbon.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/pencilbeam_helium.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/pencilbeam_photon.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/pencilbeam_photon_forward.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/pencilbeam_proton.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/pencilbeam_proton_let.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/pencilbeam_vhee.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/proton_mimicking.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/raytracer_rad_depth.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/utils_matrad.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/examples/utils_plotting.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/analysis/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/analysis/_dvh.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/_exceptions.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/_grids.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/datamodel.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/np2sitk.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/resample.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/xp_utils/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/xp_utils/compat.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/xp_utils/helpers.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/core/xp_utils/typing.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/cst/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/cst/_cst.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/cst/_voi.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/ct/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/ct/_ct.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/ct/_hlut.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/data/machines/VHEE_Focused.mat +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/data/machines/VHEE_Generic.mat +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/data/machines/carbon_Generic.mat +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/data/machines/helium_Generic.mat +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/data/machines/photons_Generic.mat +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/data/machines/protons_Generic.mat +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/data/phantoms/TG119.mat +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dij/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dij/_compose_beam_dijs.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dij/_dij.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/_calc_dose.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_base.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_base_montecarlo.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_base_pencilbeam.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_base_pencilbeam_particle.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_factory.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_fredmc.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_hongpb.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/dose/engines/_svdpb.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/geometry/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/geometry/lps.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/io/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/io/_matlab_file_handler.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/io/_patient_loader.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/io/matfile.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/_load.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/_validate.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/base/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/base/_base.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/base/_beam_modifier.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/base/_external_beam.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/base/_factory.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/base/_internal_beam.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/_base.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/_beam_cutoff.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/_beam_emittance.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/_beam_energy.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/_beam_focus.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/_ions.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/_vhee.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/kernel/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/kernel/_base.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/kernel/_ions.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/particles/kernel/_vhee.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/photons/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/photons/_base.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/photons/_calculate_machine_scale.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/photons/_linac.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/machines/photons/_svd_kernel.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/matRad/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/matRad/_engine.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/matRad/_matlab.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/matRad/_octave.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/_fluence_optimization.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_eud.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_factory.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_max_dvh.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_mean.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_min_dvh.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_objective.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_squared_dev.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_squared_mimicking.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_squared_over.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_squared_under.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/objectives/_std.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/problems/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/problems/_factory.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/problems/_nonlin_fluence.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/problems/_optiprob.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/problems/_simple_least_squares.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/solvers/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/solvers/_base_solvers.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/solvers/_factory.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/solvers/_ipopt.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/solvers/_scipy_solver.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/plan/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/plan/_plans.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/quantities/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/quantities/_base.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/quantities/_dose.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/quantities/_let_x_dose.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/raytracer/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/raytracer/_numba_perf.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/raytracer/_siddon.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/scenarios/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/scenarios/_base.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/scenarios/_nominal.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/_beam.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/_beamlet.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/_exceptions.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/_generate_stf.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/_rangeshifter.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/_ray.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/_steeringinformation.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/generators/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/generators/_base.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/generators/_externalbeam.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/generators/_factory.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/generators/_ions.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/generators/_photons.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/stf/generators/_vhee.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/util/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/util/helpers.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/util/keyboard_listener.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/visualization/__init__.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/visualization/_plot_multiple_slices.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/visualization/_plot_slice.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan.egg-info/dependency_links.txt +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/setup.cfg +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/analysis/test_dvh.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/analysis/test_qi.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/compute/test_math_interp1d.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/compute/test_math_quantile.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/compute/test_namespace_conversion.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/conftest.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/core/test_coordinates.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/core/test_datamodel.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/core/test_np2sitk.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/core/test_resample.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/cst/conftest.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/cst/test_VOI.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/cst/test_cst.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/ct/test_ct.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/ct/test_hlut.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/data/test_validate_test_data.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/dose/conftest.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/dose/test_dose_engine_base.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/dose/test_factory.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/dose/test_fred.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/dose/test_hongpb.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/dose/test_pb_geodist.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/dose/test_svdpb.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/geometry/test_lps.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/machines/test_beam_modifiers.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/optimization/test_fluence_optiprob.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/optimization/test_ipopt_solver.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/optimization/test_objectives.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/optimization/test_problem_factory.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/optimization/test_scipy_solver.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/optimization/test_solver_factory.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/quantities/test_dose_quantity.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/quantities/test_let_dose_quantity.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/stf/test_beamlet.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/stf/test_stf.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/stf/test_stf_gen.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_dij.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_fileHandling.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_grid.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_helpers.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_machine_model.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_matlabEngine.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_octaveEngine.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_plan.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_raytracersiddon.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/test_scenarios.py +0 -0
- {pyradplan-0.3.2 → pyradplan-0.3.3}/test/visualization/test_plot_multiple_slices.py +0 -0
- {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.
|
|
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
|
-
|
|
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
|
-
|
|
266
|
-
|
|
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.
|
|
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"
|
|
@@ -10,7 +10,7 @@ pyRadPlan = ["data/**/*"]
|
|
|
10
10
|
|
|
11
11
|
[project]
|
|
12
12
|
name = "pyRadPlan"
|
|
13
|
-
version = "0.3.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
{pyradplan-0.3.2 → pyradplan-0.3.3}/pyRadPlan/optimization/problems/_simple_least_squares.py
RENAMED
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|