Skip to content

Commit 376c96e

Browse files
docs: standardization of docstrings (#1271)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 4ec0b0d commit 376c96e

17 files changed

+23
-24
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Standardization of docstrings

src/ansys/health/heart/logger.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,7 @@ def addfile_handler(logger, filename=FILE_NAME, level=LOG_LEVEL_STDOUT, write_he
534534
filename : str, default: FILE_NAME
535535
Name of the output file, which is ``'pyconv-de.log'`` by default.
536536
level : int, default: 10
537-
Level of logging. The default is ``10``, in which case the
538-
``logging.DEBUG`` level is used.
537+
Level of logging. ``10`` corresponds to ``logging.DEBUG`` level.
539538
write_headers : bool, default: False
540539
Whether to write headers to the file.
541540

src/ansys/health/heart/models.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def __init__(self, working_directory: pathlib.Path | str = None) -> None:
255255

256256
#! TODO: non-functional flag. Remove or replace.
257257
self._add_blood_pool: bool = False
258-
"""Flag indicating whether a blood pool mesh is added. (Experimental)"""
258+
"""Flag indicating whether a blood pool mesh is added. (Experimental)."""
259259

260260
self._input: _InputModel = None
261261
"""Input model."""
@@ -396,7 +396,7 @@ def create_part_by_ids(
396396
name : str
397397
Part name.
398398
part_type : anatomy._PartType, default: anatomy._PartType.UNDEFINED
399-
Type of the part. The default is ``anatomy._PartType.UNDEFINED``.
399+
Type of the part to create.
400400
401401
Returns
402402
-------
@@ -711,8 +711,7 @@ def plot_fibers(self, n_seed_points: int = 1000):
711711
plot_raw_mesh : bool, default: False
712712
Whether to plot the streamlines on the raw mesh.
713713
n_seed_points : int, default: 1000
714-
Number of seed points. While the default is ``1000``, using ``5000``
715-
is recommended.
714+
Number of seed points for mesh generation. Using ``5000`` is recommended.
716715
717716
Examples
718717
--------

src/ansys/health/heart/post/laplace_post.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ def compute_la_fiber_cs(
169169
settings : AtrialFiber
170170
Atrial fiber settings.
171171
endo_surface : pv.PolyData, default: None
172-
``_description_``. If given, normal direction is updated by the surface
173-
normal instead of the Laplace solution.
172+
Endocardium surface mesh. If provided, normal direction is updated by the
173+
surface normal instead of the Laplace solution.
174174
175175
Notes
176176
-----
@@ -249,8 +249,8 @@ def compute_ra_fiber_cs(
249249
settings : AtrialFiber
250250
Atrial fiber settings.
251251
endo_surface : pv.PolyData, default: None
252-
``_description_``. If given, normal direction is updated by the surface normal
253-
instead of the Laplace solution.
252+
Endocardium surface mesh. If provided, normal direction is updated by the
253+
surface normal instead of the Laplace solution.
254254
255255
Notes
256256
-----

src/ansys/health/heart/settings/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,10 +793,10 @@ class FibersDRBM(BaseSettings):
793793
beta_epi=Quantity(20, "degree"))
794794
Fiber orientation settings specific to the right ventricle.
795795
Contains alpha and beta angles for right ventricular wall.
796-
alpha_outflow_tract : Quantity or None, default: None
796+
alpha_outflow_tract : Quantity | None, default: None
797797
Helical angle for the outflow tract region in degrees.
798798
Set to None if outflow tract fiber orientation not specified.
799-
beta_outflow_tract : Quantity or None, default: None
799+
beta_outflow_tract : Quantity | None, default: None
800800
Inclination angle for the outflow tract region in degrees.
801801
Set to None if outflow tract fiber orientation not specified.
802802
septal_fraction : float, default: 2.0/3.0

src/ansys/health/heart/writer/custom_keywords/keywords/control_implicit_solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929

3030
class ControlImplicitSolver(KeywordBase):
31-
"""LS-DYNA CONTROL_IMPLICIT_SOLVER keyword"""
31+
"""LS-DYNA CONTROL_IMPLICIT_SOLVER keyword."""
3232

3333
keyword = "CONTROL"
3434
subkeyword = "IMPLICIT_SOLVER"

src/ansys/health/heart/writer/custom_keywords/keywords/em_boundary_prescribed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828

2929
class EmBoundaryPrescribed(KeywordBase):
30-
"""LS-DYNA EM_BOUNDARY_PRESCRIBED keyword"""
30+
"""LS-DYNA EM_BOUNDARY_PRESCRIBED keyword."""
3131

3232
keyword = "EM"
3333
subkeyword = "BOUNDARY_PRESCRIBED"

src/ansys/health/heart/writer/custom_keywords/keywords/em_control_ep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
class EmControlEp(KeywordBase):
28-
"""LS-DYNA EM_CONTROL_EP keyword"""
28+
"""LS-DYNA EM_CONTROL_EP keyword."""
2929

3030
keyword = "EM"
3131
subkeyword = "CONTROL_EP"

src/ansys/health/heart/writer/custom_keywords/keywords/em_ep_cellmodel_tomek.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
class EmEpCellmodelTomek(KeywordBase):
28-
"""LS-DYNA EM_EP_CELLMODEL_TOMEK keyword"""
28+
"""LS-DYNA EM_EP_CELLMODEL_TOMEK keyword."""
2929

3030
keyword = "EM"
3131
subkeyword = "EP_CELLMODEL_TOMEK"

src/ansys/health/heart/writer/custom_keywords/keywords/em_ep_createfiberorientation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929

3030
class EmEpCreatefiberorientation(KeywordBase):
31-
"""LS-DYNA EM_EP_CREATEFIBERORIENTATION keyword"""
31+
"""LS-DYNA EM_EP_CREATEFIBERORIENTATION keyword."""
3232

3333
keyword = "EM"
3434
subkeyword = "EP_CREATEFIBERORIENTATION"

0 commit comments

Comments
 (0)