Skip to content

Commit

Permalink
DOC: Fix spelling mistakes detected by codespell
Browse files Browse the repository at this point in the history
Fix spelling mistakes detected by `codespell`.

Fixes:
```
./README.rst:77: difussion ==> diffusion
./src/nifreeze/testing/simulations.py:70: pricipal ==> principal
./src/nifreeze/registration/ants.py:392: initalizing ==> initializing
spellcheck: exit 65 (0.17 seconds) /home/runner/work/nifreeze/nifreeze> codespell . pid=1810
  spellcheck: FAIL code 65 (0.27=setup[0.11]+cmd[0.17] seconds)
  evaluation failed :( (0.34 seconds)
Error: Process completed with exit code 65.
```

raised for example in:
https://github.com/nipreps/nifreeze/actions/runs/12435719520/job/34722102640?pr=28#step:8:21
  • Loading branch information
jhlegarreta committed Dec 20, 2024
1 parent 4959294 commit fdf477e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ and positron-emission tomography (PET) data.
the known directions and strengths of diffusion gradients*. J Magn Reson Imaging **24**:1188-1193.
.. [4] Andersson et al. (2012) *A comprehensive Gaussian Process framework for correcting distortions
and movements in difussion images*. In: 20th SMRT & 21st ISMRM, Melbourne, Australia.
and movements in diffusion images*. In: 20th SMRT & 21st ISMRM, Melbourne, Australia.
.. [5] Andersson & Sotiropoulos (2015) *Non-parametric representation and prediction of single- and
multi-shell diffusion-weighted MRI data using Gaussian processes*. NeuroImage **122**:166-176.
Expand Down
2 changes: 1 addition & 1 deletion src/nifreeze/registration/ants.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def generate_command(
str(p) for p in _massage_mask_path(movingmask_path, nlevels)
]

# Set initalizing affine if provided
# Set initializing affine if provided
if init_affine is not None:
settings["initial_moving_transform"] = str(init_affine)

Expand Down
2 changes: 1 addition & 1 deletion src/nifreeze/testing/simulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def add_b0(bvals: np.ndarray, bvecs: np.ndarray) -> tuple[np.ndarray, np.ndarray

def create_single_fiber_evecs(theta: float = 0, phi: float = 0) -> np.ndarray:
"""
Create eigenvectors for a simulated fiber given the polar coordinates of its pricipal axis.
Create eigenvectors for a simulated fiber given the polar coordinates of its principal axis.
Parameters
----------
Expand Down

0 comments on commit fdf477e

Please sign in to comment.