Skip to content

Commit 5c41e12

Browse files
committed
Merge branch 'refactor/docstrings' into 'develop'
Refactor/docstrings See merge request e040/e0404/pyRadPlan!83
2 parents 5ad0dcd + 680988b commit 5c41e12

File tree

33 files changed

+79
-51
lines changed

33 files changed

+79
-51
lines changed

pyRadPlan/__init__.py

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
1-
"""pyRadPlan is a Python package for radiation therapy treatment planning.""" # noqa: N999
1+
"""
2+
Python package for radiation therapy treatment planning.
3+
4+
We recommend reading the documentation on `GitHub <https://github.com/e0404/pyRadPlan>`_.
5+
6+
This package provides
7+
- Core classes and functions for treatment planning.
8+
- Dose influence matrix calculations and data structures.
9+
- Physical and biological quantities for treatment planning.
10+
- Optimization and analysis tools for radiation therapy plans.
11+
- Sequencing and visualization tools for radiation therapy plans.
12+
13+
Import packages as follows:
14+
15+
from pyRadPlan import (
16+
load_tg119,
17+
PhotonPlan,
18+
generate_stf,
19+
calc_dose_influence,
20+
fluence_optimization,
21+
plot_slice,
22+
)
23+
24+
Use the documentation, docstrings or examples for a detailed overview.
25+
"""
226

327
from importlib.metadata import version, PackageNotFoundError
428
import logging

pyRadPlan/analysis/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Analysis module for pyRadPlan."""
1+
"""Treatment plan analysis tools and metrics."""
22

33
from ._dvh import DVH, DVHCollection
44

pyRadPlan/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Core module with fundamental classes and functions for pyRadPlan."""
1+
"""Core classes and functions for pyRadPlan."""
22

33
from ._exceptions import PyRadPlanError
44
from .datamodel import PyRadPlanBaseModel

pyRadPlan/cst/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Clinical structures and volumes of interest."""
2+
13
from ._voi import VOI, OAR, Target, HelperVOI, ExternalVOI, create_voi, validate_voi
24
from ._cst import StructureSet, create_cst, validate_cst
35

pyRadPlan/ct/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""CT image processing and validation."""
2+
13
from ._ct import CT, create_ct, validate_ct, ct_from_file, resample_ct
24
from ._hlut import default_hlut
35

pyRadPlan/dij/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Module for Dij Datamodel and related functions."""
1+
"""Dose influence matrix calculations and data structures."""
22

33
from pyRadPlan.dij._dij import Dij, create_dij, validate_dij
44
from pyRadPlan.dij._compose_beam_dijs import compose_beam_dijs

pyRadPlan/dose/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Provide methods for calculation dose."""
1+
"""Dose calculation methods and algorithms."""
22

33
from ._calc_dose import calc_dose_influence, calc_dose_forward
44

pyRadPlan/dose/engines/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Dose calculation engines and algorithms."""
2+
13
from ._base import DoseEngineBase
24
from ._svdpb import PhotonPencilBeamSVDEngine
35
from ._hongpb import ParticleHongPencilBeamEngine

pyRadPlan/dose/engines/_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def get_available_engines(pln: Union[Plan, dict[str]]) -> dict[str, Type[DoseEng
6161

6262
def get_engine(pln: Union[Plan, dict]) -> DoseEngineBase:
6363
"""
64-
Factory function to get the appropriate engine based on the plan.
64+
Get the appropriate engine based on the plan.
6565
6666
Parameters
6767
----------

pyRadPlan/dose/engines/_svdpb.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
"""
2-
Implementation of a pencil beam dose calculation engine for photon beams
3-
based on the Singular-value
4-
decomposition (SVD) method by Bortfeld.
5-
"""
6-
71
from typing import TypedDict, Literal, Any, cast, Callable
82
import logging
93
import random

0 commit comments

Comments
 (0)