Skip to content

Commit d54532d

Browse files
committed
[DATALAD RUNCMD] Run codespell throughout
=== Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
1 parent 536d402 commit d54532d

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

doc/changelog/0.X.X-changelog.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* ENH: Generate Dockerfiles with neurodocker (https://github.com/nipy/nipype/pull/2202)
1616
* ENH: FLAIR options for recon-all (https://github.com/nipy/nipype/pull/2279)
1717
* ENH: Config option for setting maxtasksperchild when multiprocessing (https://github.com/nipy/nipype/pull/2284)
18-
* FIX: Testing maintainance and improvements (https://github.com/nipy/nipype/pull/2252)
18+
* FIX: Testing maintenance and improvements (https://github.com/nipy/nipype/pull/2252)
1919
* ENH: Add elapsed_time and final metric_value to ants.Registration (https://github.com/nipy/nipype/pull/1985)
2020
* ENH: Improve terminal_output feature (https://github.com/nipy/nipype/pull/2209)
2121
* ENH: Simple interface to FSL std2imgcoords (https://github.com/nipy/nipype/pull/2209, prev #1398)
@@ -39,7 +39,7 @@
3939
* ENH: Add cosine-basis high-pass-filter to CompCor, allow skip of initial volumes (https://github.com/nipy/nipype/pull/2107, https://github.com/nipy/nipype/pull/#2122)
4040
* FIX: Catch more dcm2niix DTI conversions (https://github.com/nipy/nipype/pull/2110)
4141
* FIX: Retrieve aseg + wmparc stats properly (https://github.com/nipy/nipype/pull/2117)
42-
* ENH: ANTs MeasureImageSimilarity Inteface (https://github.com/nipy/nipype/pull/2128)
42+
* ENH: ANTs MeasureImageSimilarity Interface (https://github.com/nipy/nipype/pull/2128)
4343
* FIX: CompCor filter_basis of correct size, pre-filter column headers (https://github.com/nipy/nipype/pull/2136, https://github.com/nipy/nipype/pull/2138)
4444
* ENH: FreeSurfer lta_convert and mri_coreg interfaces (https://github.com/nipy/nipype/pull/2140, https://github.com/nipy/nipype/pull/2172)
4545
* ENH: Speed up S3DataGrabber (https://github.com/nipy/nipype/pull/2143)
@@ -311,7 +311,7 @@ Release 0.11.0 (September 15, 2015)
311311
Release 0.10.0 (October 10, 2014)
312312
=================================
313313

314-
* ENH: New miscelaneous interfaces: SplitROIs (mapper), MergeROIs (reducer)
314+
* ENH: New miscellaneous interfaces: SplitROIs (mapper), MergeROIs (reducer)
315315
to enable parallel processing of very large images.
316316
* ENH: Updated FSL interfaces: BEDPOSTX and XFibres, former interfaces are still
317317
available with the version suffix: BEDPOSTX4 and XFibres4. Added gpu
@@ -320,7 +320,7 @@ Release 0.10.0 (October 10, 2014)
320320
* ENH: New dipy interfaces: Denoise, Resample
321321
* ENH: New Freesurfer interfaces: Tkregister2 (for conversion of fsl style matrices to freesurfer format), MRIPretess
322322
* ENH: New FSL interfaces: WarpPoints, WarpPointsToStd, EpiReg, ProbTrackX2, WarpUtils, ConvertWarp
323-
* ENH: New miscelaneous interfaces: AddCSVRow, NormalizeProbabilityMapSet, AddNoise
323+
* ENH: New miscellaneous interfaces: AddCSVRow, NormalizeProbabilityMapSet, AddNoise
324324
* ENH: New AFNI interfaces: Eval, Means, SVMTest, SVMTrain
325325
* ENH: FUGUE interface has been refactored to use the name_template system, 3 examples
326326
added to doctests, some bugs solved.
@@ -510,7 +510,7 @@ Release 0.5 (Mar 10, 2012)
510510
* API: By default inputs are removed from Node working directory
511511
* API: InterfaceResult class is now versioned and stores class type not instance
512512
* API: Added FIRST interface
513-
* API: Added max_jobs paramter to plugin_args. limits the number of jobs
513+
* API: Added max_jobs parameter to plugin_args. limits the number of jobs
514514
executing at any given point in time
515515
* API: crashdump_dir is now a config execution option
516516
* API: new config execution options for controlling hash checking, execution and

doc/changelog/1.X.X-changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ Python 1.2.3 will be the last version to support Python 3.4.
426426

427427
* FIX: ANTS LaplacianThickness cmdline opts fixed up (https://github.com/nipy/nipype/pull/2846)
428428
* FIX: Resolve LinAlgError during SVD (https://github.com/nipy/nipype/pull/2838)
429-
* ENH: Add interfaces wrapping DIPY worflows (https://github.com/nipy/nipype/pull/2830)
429+
* ENH: Add interfaces wrapping DIPY workflows (https://github.com/nipy/nipype/pull/2830)
430430
* ENH: Update BIDSDataGrabber for pybids 0.7 (https://github.com/nipy/nipype/pull/2737)
431431
* ENH: Add FSL `eddy_quad` interface (https://github.com/nipy/nipype/pull/2825)
432432
* ENH: Support tckgen -select in MRtrix3 v3+ (https://github.com/nipy/nipype/pull/2823)

nipype/algorithms/icc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ def ICC_rep_anova(Y, projection_matrix=None):
150150
SSR = SST - SSC - SSE
151151
MSR = SSR / dfr
152152

153-
# ICC(3,1) = (mean square subjeT - mean square error) /
154-
# (mean square subjeT + (k-1)*-mean square error)
153+
# ICC(3,1) = (mean square subject - mean square error) /
154+
# (mean square subject + (k-1)*-mean square error)
155155
ICC = (MSR - MSE) / (MSR + dfc * MSE)
156156

157157
e_var = MSE # variance of error

nipype/interfaces/ants/segmentation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,10 +1009,10 @@ def _run_interface(self, runtime, correct_return_codes=(0,)):
10091009
runtime = super(BrainExtraction, self)._run_interface(runtime)
10101010

10111011
# Still, double-check if it didn't found N4
1012-
if "we cant find" in runtime.stdout:
1012+
if "we can't find" in runtime.stdout:
10131013
for line in runtime.stdout.split("\n"):
1014-
if line.strip().startswith("we cant find"):
1015-
tool = line.strip().replace("we cant find the", "").split(" ")[0]
1014+
if line.strip().startswith("we can't find"):
1015+
tool = line.strip().replace("we can't find the", "").split(" ")[0]
10161016
break
10171017

10181018
errmsg = (

nipype/interfaces/base/specs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def get_traitsfree(self, **kwargs):
177177
return out
178178

179179
def _clean_container(self, objekt, undefinedval=None, skipundefined=False):
180-
"""Convert a traited obejct into a pure python representation."""
180+
"""Convert a traited object into a pure python representation."""
181181
if isinstance(objekt, TraitDictObject) or isinstance(objekt, dict):
182182
out = {}
183183
for key, val in list(objekt.items()):

nipype/interfaces/spm/tests/test_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_coreg():
2323
_, tgt, _ = split_filename(target)
2424
mat = os.path.join(pth, "%s_to_%s.mat" % (mov, tgt))
2525
invmat = fname_presuffix(mat, prefix="inverse_")
26-
scrpt = coreg._make_matlab_command(None)
26+
script = coreg._make_matlab_command(None)
2727
assert coreg.inputs.mat == mat
2828
assert coreg.inputs.invmat == invmat
2929

@@ -35,11 +35,11 @@ def test_apply_transform():
3535
assert applymat.inputs.matlab_cmd == "mymatlab"
3636
applymat.inputs.in_file = moving
3737
applymat.inputs.mat = mat
38-
scrpt = applymat._make_matlab_command(None)
38+
script = applymat._make_matlab_command(None)
3939
expected = "[p n e v] = spm_fileparts(V.fname);"
40-
assert expected in scrpt
40+
assert expected in script
4141
expected = "V.mat = transform.M * V.mat;"
42-
assert expected in scrpt
42+
assert expected in script
4343

4444

4545
def test_reslice():

nipype/interfaces/tests/test_io.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,10 +708,10 @@ def _mock_get_ssh_client(self):
708708

709709

710710
def test_ExportFile(tmp_path):
711-
testin = tmp_path / "in.txt"
712-
testin.write_text("test string", encoding='utf-8')
711+
testing = tmp_path / "in.txt"
712+
testing.write_text("test string", encoding='utf-8')
713713
i = nio.ExportFile()
714-
i.inputs.in_file = str(testin)
714+
i.inputs.in_file = str(testing)
715715
i.inputs.out_file = str(tmp_path / "out.tsv")
716716
i.inputs.check_extension = True
717717
with pytest.raises(RuntimeError):

tools/ex2rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def exfile2rst(filename):
9898
proc_line = None
9999
# handle doc start
100100
if not indocs:
101-
# guarenteed to start with """
101+
# guaranteed to start with """
102102
if len(cleanline) > 3 \
103103
and (cleanline.endswith('"""') \
104104
or cleanline.endswith("'''")):

0 commit comments

Comments
 (0)