Skip to content

Commit

Permalink
add additional information to docstring
Browse files Browse the repository at this point in the history
mention  and  will only be used when  is set to

Signed-off-by: MrGranddy <bugrayesilkaynak@gmail.com>
  • Loading branch information
MrGranddy committed Jun 25, 2024
1 parent da02700 commit 2c29588
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions monai/data/ultrasound_confidence_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class UltrasoundConfidenceMap:
sink_mode (str, optional): Sink mode. Defaults to 'all'. If 'mask' is selected, a mask must be when calling
the transform. Can be 'all', 'mid', 'min', or 'mask'.
use_cg (bool, optional): Use Conjugate Gradient method for solving the linear system. Defaults to False.
cg_tol (float, optional): Tolerance for the Conjugate Gradient method. Defaults to 1e-6.
cg_maxiter (int, optional): Maximum number of iterations for the Conjugate Gradient method. Defaults to 200.
cg_tol (float, optional): Tolerance for the Conjugate Gradient method. Defaults to 1e-6. Will be used only if `use_cg` is True.
cg_maxiter (int, optional): Maximum number of iterations for the Conjugate Gradient method. Defaults to 200. Will be used only if `use_cg` is True.
"""

def __init__(
Expand Down
4 changes: 2 additions & 2 deletions monai/transforms/intensity/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -2800,8 +2800,8 @@ class UltrasoundConfidenceMapTransform(Transform):
sink_mode (str, optional): Sink mode. Defaults to 'all'. If 'mask' is selected, a mask must be when
calling the transform. Can be one of 'all', 'mid', 'min', 'mask'.
use_cg (bool, optional): Use Conjugate Gradient method for solving the linear system. Defaults to False.
cg_tol (float, optional): Tolerance for the Conjugate Gradient method. Defaults to 1e-6.
cg_maxiter (int, optional): Maximum number of iterations for the Conjugate Gradient method. Defaults to 200.
cg_tol (float, optional): Tolerance for the Conjugate Gradient method. Defaults to 1e-6. Will be used only if `use_cg` is True.
cg_maxiter (int, optional): Maximum number of iterations for the Conjugate Gradient method. Defaults to 200. Will be used only if `use_cg` is True.
"""

def __init__(
Expand Down
1 change: 0 additions & 1 deletion tests/test_ultrasound_confidence_map_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,6 @@ def test_against_official_code_using_cg(self):
)
output = transform(input_img)


assert_allclose(output, result_img, rtol=1e-2, atol=1e-2)


Expand Down

0 comments on commit 2c29588

Please sign in to comment.