Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecated argument in 'scipy.sparse.linalg.cg' #7897

Merged
merged 20 commits into from
Jul 6, 2024

Conversation

KumoLiu
Copy link
Contributor

@KumoLiu KumoLiu commented Jul 2, 2024

Fixes #7896

Description

  • 'scipy.sparse.linalg.cg' keyword argument tol is deprecated in favor of rtol and will be removed in SciPy v1.14.0. Until then, if set, it will override rtol. So update to use rtol in cg.

  • Drop python 3.8 test in packaging and premerge-gpu-test.

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Signed-off-by: YunLiu <[email protected]>
KumoLiu added 2 commits July 2, 2024 13:01
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
@KumoLiu
Copy link
Contributor Author

KumoLiu commented Jul 2, 2024

/build

Signed-off-by: YunLiu <[email protected]>
@KumoLiu
Copy link
Contributor Author

KumoLiu commented Jul 2, 2024

/build

1 similar comment
@YanxuanLiu
Copy link
Collaborator

/build

@KumoLiu
Copy link
Contributor Author

KumoLiu commented Jul 2, 2024

Hi @ericspod and @Nic-Ma, I dropped Python3.8 test in ".github/workflows/pythonapp.yml" since scipy requires Python>=3.9.
fb28a3f#diff-cbf97851bdfebccf2fcdd8848c6a93adb8d8affd5c6b1faf00238d528c3ef6cb

Since 3.8 has come to an end, do you have any concern on this change?

@KumoLiu
Copy link
Contributor Author

KumoLiu commented Jul 2, 2024

/build

1 similar comment
@KumoLiu
Copy link
Contributor Author

KumoLiu commented Jul 2, 2024

/build

@KumoLiu
Copy link
Contributor Author

KumoLiu commented Jul 2, 2024

/build

@KumoLiu
Copy link
Contributor Author

KumoLiu commented Jul 4, 2024

/build

@KumoLiu
Copy link
Contributor Author

KumoLiu commented Jul 4, 2024

/build

1 similar comment
@KumoLiu
Copy link
Contributor Author

KumoLiu commented Jul 4, 2024

/build

KumoLiu added 4 commits July 4, 2024 18:07
@KumoLiu
Copy link
Contributor Author

KumoLiu commented Jul 5, 2024

/build

@KumoLiu
Copy link
Contributor Author

KumoLiu commented Jul 5, 2024

Add a numpy version requirement as a workaround in this commit: 5ce2be9
Since multiprocessing with numpy 1.26.4 has some issue in Python3.0. Refer to
https://github.com/pytorch/pytorch/blob/e7ab7b83bc36825c102987a26b4a199f97674561/.ci/docker/common/install_conda.sh#L83

@ericspod ericspod merged commit 64ea76d into Project-MONAI:dev Jul 6, 2024
28 checks passed
@KumoLiu KumoLiu deleted the cg branch July 17, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cg() got an unexpected keyword argument 'tol'
5 participants