Skip to content

Commit

Permalink
[FIX] Fix wrong preprocessing sequence in adni-to-bids FDG PET Uniform (
Browse files Browse the repository at this point in the history
#1159)

* Wrong Processed sequence --> Results: Impossible to make bids of FDG PET Uniform (does not find it)

* Linter exception

* Linter word-list exception update

* Update clinica/iotools/converters/adni_to_bids/adni_modalities/adni_fdg_pet.py

Co-authored-by: Gensollen <[email protected]>

* Update pyproject.toml

Co-authored-by: Gensollen <[email protected]>

* Update clinica/iotools/converters/adni_to_bids/adni_modalities/adni_fdg_pet.py

Co-authored-by: Gensollen <[email protected]>

* Update clinica/iotools/converters/adni_to_bids/adni_modalities/adni_fdg_pet.py

* try using a text file for ignoring words

* remove useless codespell:ignore

* sort ignore words

---------

Co-authored-by: Gensollen <[email protected]>
  • Loading branch information
HuguesRoy and NicolasGensollen authored Apr 26, 2024
1 parent 374794e commit 914fd77
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class ADNIPreprocessingStep(Enum):
STEP1 = "Co-registered Dynamic"
STEP2 = "Co-registered, Averaged"
STEP3 = "Coreg, Avg, Standardized Image and Voxel Size"
STEP4_8MM = "Coreg, Avg, Std Img and Voxel Size, Uniform Resolution"
STEP4_6MM = "Coreg, Avg, Std Img and Voxel Size, Uniform 6mm Res"
STEP4_8MM = "Coreg, Avg, Std Img and Vox Siz, Uniform Resolution"
STEP4_6MM = "Coreg, Avg, Std Img and Vox Siz, Uniform 6mm Res"

@classmethod
def from_step_value(cls, step_value: int):
Expand Down
8 changes: 8 additions & 0 deletions ignore_words.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
artic
commun
fo
fwe
nd
siz
te
vox
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ line-ending = "auto"

[tool.codespell]
summary = ''
skip = ".git,LICENSE.txt,*.m"
skip = ".git,LICENSE.txt,ignore_words.txt,*.m"
quiet-level = 3
ignore-words-list = "nd,fwe,commun,fo,te,artic"
ignore-words = "ignore_words.txt"

0 comments on commit 914fd77

Please sign in to comment.