Skip to content

Commit

Permalink
[MAINT] Progress codespell forward, fixup typos it detects (#1362)
Browse files Browse the repository at this point in the history
* Progress codespell to 2.3.0 in pre-commit

* rf: replace close to typo "inpt" with short "i" in comprehension

* replace typo close lamba with lam matching local variable

* Update clinica/pipelines/machine_learning_spatial_svm/spatial_svm_utils.py

---------

Co-authored-by: Gensollen <[email protected]>
  • Loading branch information
yarikoptic and NicolasGensollen authored Nov 12, 2024
1 parent c1c1ab4 commit e69376e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion clinica/pipelines/dwi/preprocessing/t1/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: lambda = the largest eigenvalues
"""
import cmath
Expand Down

0 comments on commit e69376e

Please sign in to comment.