Skip to content

Commit 3be6f1d

Browse files
committed
Merge branch 'docs/overall_doc_review' of https://github.com/ansys/pyansys-heart into docs/overall_doc_review
2 parents 721482f + 52eea36 commit 3be6f1d

31 files changed

+1086
-1049
lines changed

src/ansys/health/heart/models.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -720,9 +720,7 @@ def plot_surfaces(self, show_edges: bool = True):
720720
try:
721721
import matplotlib as matplotlib
722722
except ImportError:
723-
LOGGER.warning(
724-
"Matplotlib is not found. Install with the 'pip install matplotlib' command."
725-
)
723+
LOGGER.warning("Matplotlib is not found. Install with 'pip install matplotlib'.")
726724
return
727725

728726
surfaces_to_plot = [s for p in self.parts for s in p.surfaces]
@@ -1429,7 +1427,7 @@ def get_apex_node_set(
14291427
option: Literal["endocardium", "epicardium", "myocardium"] = "epicardium",
14301428
radius: float = 3,
14311429
) -> np.ndarray:
1432-
"""Get a node set around the apex point.
1430+
"""Get a nodeset around the apex point.
14331431
14341432
Parameters
14351433
----------
@@ -1443,7 +1441,7 @@ def get_apex_node_set(
14431441
Returns
14441442
-------
14451443
np.ndarray
1446-
Apex node set
1444+
Apex nodeset
14471445
"""
14481446
import scipy.spatial as spatial
14491447

src/ansys/health/heart/objects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def __init__(self, name: str = None) -> None:
135135
self.type = None
136136
"""Type of feature."""
137137
self._node_set_id: int = None
138-
"""Node set ID associated with feature."""
138+
"""Nodeset ID associated with feature."""
139139
self._seg_set_id: int = None
140140
"""Segment set ID associated with feature."""
141141
self.pid: int = None
@@ -257,7 +257,7 @@ def __init__(
257257
self._seg_set_id: int = None
258258
"""Segment set ID."""
259259
self._node_set_id: int = None
260-
"""Node set ID."""
260+
"""Nodeset ID."""
261261

262262
@property
263263
def node_ids_triangles(self) -> np.ndarray:

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,21 @@
4040

4141

4242
def zerop_post(directory: str, model: HeartModel) -> tuple[dict, np.ndarray, np.ndarray]:
43-
"""Post-process zeropressure folder.
43+
"""Postprocess the zero-pressure folder.
4444
4545
Parameters
4646
----------
4747
directory : str
48-
Path to simulation folder
48+
Path to the simulation folder.
4949
model : HeartModel
50-
model to post-process
50+
Model to postprocess.
5151
5252
Returns
5353
-------
5454
tuple[dict, np.ndarray, np.ndarray]
55-
dictionary with convergence information
56-
stress free configuration
57-
computed end-of-diastolic configuration
55+
Dictionary with convergence information,
56+
stress free configuration, and
57+
computed end-of-diastolic configuration.
5858
"""
5959
folder = "post"
6060
os.makedirs(os.path.join(directory, folder), exist_ok=True)
@@ -124,7 +124,7 @@ def zerop_post(directory: str, model: HeartModel) -> tuple[dict, np.ndarray, np.
124124
# save left ventricle in json
125125
dct["Left ventricle EOD pressure (mmHg)"] = lv_pr_mmhg
126126
dct["True left ventricle volume (mm3)"] = true_lv_ed_volume
127-
dct["Simulation Left ventricle volume (mm3)"] = lv_volumes
127+
dct["Simulation left ventricle volume (mm3)"] = lv_volumes
128128

129129
# Klotz curve information
130130
klotz = EDPVR(true_lv_ed_volume / 1000, lv_pr_mmhg)
@@ -144,14 +144,14 @@ def zerop_post(directory: str, model: HeartModel) -> tuple[dict, np.ndarray, np.
144144

145145

146146
def mech_post(directory: str, model: HeartModel) -> None:
147-
"""Post-process mechanical simulation folder.
147+
"""Postprocess the mechanical simulation folder.
148148
149149
Parameters
150150
----------
151151
directory : str
152-
d3plot folder
152+
Path to the d3plot folder.
153153
model : HeartModel
154-
heart model
154+
Heart model.
155155
"""
156156
last_cycle_duration = 800
157157
folder = "post"

0 commit comments

Comments
 (0)