Skip to content

cg() got an unexpected keyword argument 'tol' #7896

@KumoLiu

Description

@KumoLiu
======================================================================
ERROR: test_against_official_code_using_cg (tests.test_ultrasound_confidence_map_transform.TestUltrasoundConfidenceMapTransform)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/MONAI/MONAI/tests/test_ultrasound_confidence_map_transform.py", line 699, in test_against_official_code_using_cg
    output = transform(input_img)
  File "/home/runner/work/MONAI/MONAI/monai/transforms/intensity/array.py", line 2878, in __call__
    conf_map: NdarrayOrTensor = self._compute_conf_map(img_np, mask_np)
  File "/home/runner/work/MONAI/MONAI/monai/data/ultrasound_confidence_map.py", line 381, in __call__
    map_: NDArray = self.confidence_estimation(data, seeds, labels, self.beta, self.gamma)
  File "/home/runner/work/MONAI/MONAI/monai/data/ultrasound_confidence_map.py", line 338, in confidence_estimation
    x = self._solve_linear_system(lap, rhs)
  File "/home/runner/work/MONAI/MONAI/monai/data/ultrasound_confidence_map.py", line 288, in _solve_linear_system
    x, _ = cg(lap, rhs, tol=self.cg_tol, maxiter=self.cg_maxiter, M=m)
TypeError: cg() got an unexpected keyword argument 'tol'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions