From 6ca3aea1bb03f78295459cc0606cfe0e8dd5986d Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 7 Nov 2024 13:58:41 -0500 Subject: [PATCH 1/4] Progress codespell to 2.3.0 in pre-commit --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9a1f27133..3e7d2d616 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: args: [ --fix ] - id: ruff-format - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell additional_dependencies: From 7453fabd2eefa7e69486863388c845a0fc51e6ef Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 7 Nov 2024 14:00:06 -0500 Subject: [PATCH 2/4] rf: replace close to typo "inpt" with short "i" in comprehension --- clinica/pipelines/dwi/preprocessing/t1/workflows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clinica/pipelines/dwi/preprocessing/t1/workflows.py b/clinica/pipelines/dwi/preprocessing/t1/workflows.py index 8488c2dc3..cf040d1aa 100644 --- a/clinica/pipelines/dwi/preprocessing/t1/workflows.py +++ b/clinica/pipelines/dwi/preprocessing/t1/workflows.py @@ -124,7 +124,7 @@ def epi_pipeline( ( inputnode, ants_registration, - [(inpt, f"inputnode.{inpt}") for inpt in workflow_inputs], + [(i, f"inputnode.{i}") for i in workflow_inputs], ), ( inputnode, From 2e1fe21ba0c05717c8fe865c3019026a895a0a0c Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 7 Nov 2024 14:01:07 -0500 Subject: [PATCH 3/4] replace typo close lamba with lam matching local variable --- .../pipelines/machine_learning_spatial_svm/spatial_svm_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clinica/pipelines/machine_learning_spatial_svm/spatial_svm_utils.py b/clinica/pipelines/machine_learning_spatial_svm/spatial_svm_utils.py index 2dffd4cf5..13379418b 100644 --- a/clinica/pipelines/machine_learning_spatial_svm/spatial_svm_utils.py +++ b/clinica/pipelines/machine_learning_spatial_svm/spatial_svm_utils.py @@ -682,7 +682,7 @@ def largest_eigenvalue_heat_3D_tensor2(g, h, epsilon: float = 1e-6): :param g: metric tensor :param h: space step :param epsilon: stop criterion (default: 1e-6) - :return: lamba = the largest eigenvalues + :return: lam = the largest eigenvalues """ import cmath From 069dc4352f41e54ad9aba531e1d586203f8391f0 Mon Sep 17 00:00:00 2001 From: Gensollen Date: Tue, 12 Nov 2024 11:51:49 +0100 Subject: [PATCH 4/4] Update clinica/pipelines/machine_learning_spatial_svm/spatial_svm_utils.py --- .../pipelines/machine_learning_spatial_svm/spatial_svm_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clinica/pipelines/machine_learning_spatial_svm/spatial_svm_utils.py b/clinica/pipelines/machine_learning_spatial_svm/spatial_svm_utils.py index 13379418b..c3490f862 100644 --- a/clinica/pipelines/machine_learning_spatial_svm/spatial_svm_utils.py +++ b/clinica/pipelines/machine_learning_spatial_svm/spatial_svm_utils.py @@ -682,7 +682,7 @@ def largest_eigenvalue_heat_3D_tensor2(g, h, epsilon: float = 1e-6): :param g: metric tensor :param h: space step :param epsilon: stop criterion (default: 1e-6) - :return: lam = the largest eigenvalues + :return: lambda = the largest eigenvalues """ import cmath