From 84fdfdcbb979108d5dcc8e5cc6a3525cbedb84d9 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:06:17 +0200 Subject: [PATCH] STY: Fix typos found by codespell --- nipype/interfaces/base/traits_extension.py | 2 +- nipype/interfaces/semtools/brains/utilities.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nipype/interfaces/base/traits_extension.py b/nipype/interfaces/base/traits_extension.py index 265de513ea..49ba234ba8 100644 --- a/nipype/interfaces/base/traits_extension.py +++ b/nipype/interfaces/base/traits_extension.py @@ -58,7 +58,7 @@ Undefined deep and down in traits/ui/wx/list_editor.py it checks for the len() of the elements of the list. The _Undefined class in traits does not define the __len__ method and would error. I tried defining -our own Undefined and even sublassing Undefined, but both of those +our own Undefined and even subclassing Undefined, but both of those failed with a TraitError in our initializer when we assign the Undefined to the inputs because of an incompatible type: diff --git a/nipype/interfaces/semtools/brains/utilities.py b/nipype/interfaces/semtools/brains/utilities.py index e3b035f96e..5f76478156 100644 --- a/nipype/interfaces/semtools/brains/utilities.py +++ b/nipype/interfaces/semtools/brains/utilities.py @@ -53,7 +53,7 @@ class HistogramMatchingFilterInputSpec(CommandLineInputSpec): ) histogramAlgorithm = traits.Enum( "OtsuHistogramMatching", - desc=" histogram algrithm selection", + desc=" histogram algorithm selection", argstr="--histogramAlgorithm %s", ) verbose = traits.Bool(