Skip to content

Commit

Permalink
Fix more docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
denismelanson committed May 23, 2024
1 parent 1b5fb2a commit fee0aac
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_handle_matrix_inputs_arrays():

a, d = preprocess(A, D)

A_star, D_star = handle_matrix_inputs(A, D)
A_star, D_star = preprocess(A, D)

assert isinstance(A_star, ProcessedDriftMatrix)
assert isinstance(D_star, ProcessedDiffusionMatrix)
Expand Down
2 changes: 1 addition & 1 deletion thermox/prob.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def log_prob(
A: Drift matrix (Array or thermox.ProcessedDriftMatrix).
Note : If a thermox.ProcessedDriftMatrix instance is used as input,
must be the transformed drift matrix, A_y, given by thermox.preprocess,
not thermox.utils._preprocess_drift_matrix.
not thermox.utils.preprocess_drift_matrix.
b: Drift displacement vector.
D: Diffusion matrix (Array or thermox.ProcessedDiffusionMatrix).
Expand Down
2 changes: 1 addition & 1 deletion thermox/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def sample(
A: Drift matrix (Array or thermox.ProcessedDriftMatrix).
Note : If a thermox.ProcessedDriftMatrix instance is used as input,
must be the transformed drift matrix, A_y, given by thermox.preprocess,
not thermox.utils._preprocess_drift_matrix.
not thermox.utils.preprocess_drift_matrix.
b: Drift displacement vector.
D: Diffusion matrix (Array or thermox.ProcessedDiffusionMatrix).
Expand Down
4 changes: 2 additions & 2 deletions thermox/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def handle_matrix_inputs(
Helper function for sample and log_prob functions.
Args:
A: Drift matrix.
D: Diffusion matrix.
A: Drift matrix (Array or thermox.ProcessedDriftMatrix).
D: Diffusion matrix (Array or thermox.ProcessedDiffusionMatrix).
Returns:
ProcessedDriftMatrix containing eigendecomposition of A_y and (A_y+A_y^T)/2.
Expand Down

0 comments on commit fee0aac

Please sign in to comment.