Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 450be34

Browse files
Merge pull request #3549 from yarikoptic/enh-codespell
codespell: config, workflow, typos fixed
2 parents 6693536 + 318f179 commit 450be34

File tree

19 files changed

+81
-50
lines changed

19 files changed

+81
-50
lines changed

‎.codespellrc‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[codespell]
2+
skip = .git,*.pdf,*.svg,external
3+
# nd,nam - import module short
4+
# fith - oddness coming from AFNI
5+
# whos - smth used in matlab things
6+
# SMAL - Stanford CNI MRS Library
7+
# Suh - name
8+
# noo,crasher - field/var name used
9+
# Reson - short journal name
10+
# ALS, FWE - neuroimaging specific abbrevs
11+
# Comision - foreign word used
12+
ignore-words-list = te,inport,objekt,jist,nd,hel,inout,fith,whos,fot,ue,shs,smal,nam,filetest,suh,noo,reson,als,fwe,crasher,comision

‎.github/workflows/codespell.yml‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Codespell
3+
4+
on:
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
9+
10+
jobs:
11+
codespell:
12+
name: Check for spelling errors
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: Codespell
19+
uses: codespell-project/actions-codespell@v1

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

Lines changed: 6 additions & 6 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,16 +311,16 @@ 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
318318
versions of BEDPOSTX: BEDPOSTXGPU, BEDPOSTX5GPU, and BEDPOSTX4GPU
319-
* ENH: Added experimental support for MIPAV algorithms thorugh JIST plugins
319+
* ENH: Added experimental support for MIPAV algorithms through JIST plugins
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
@@ -443,7 +443,7 @@ Python 1.2.3 will be the last version to support Python 3.4.
443443

444444
* FIX: ANTS LaplacianThickness cmdline opts fixed up (https://github.com/nipy/nipype/pull/2846)
445445
* FIX: Resolve LinAlgError during SVD (https://github.com/nipy/nipype/pull/2838)
446-
* ENH: Add interfaces wrapping DIPY worflows (https://github.com/nipy/nipype/pull/2830)
446+
* ENH: Add interfaces wrapping DIPY workflows (https://github.com/nipy/nipype/pull/2830)
447447
* ENH: Update BIDSDataGrabber for pybids 0.7 (https://github.com/nipy/nipype/pull/2737)
448448
* ENH: Add FSL `eddy_quad` interface (https://github.com/nipy/nipype/pull/2825)
449449
* 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/registration.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ class Registration(ANTSCommand):
865865
--write-composite-transform 0'
866866
867867
One can use multiple similarity metrics in a single registration stage.The Node below first
868-
performs a linear registation using only the Mutual Information ('Mattes')-metric.
868+
performs a linear registration using only the Mutual Information ('Mattes')-metric.
869869
In a second stage, it performs a non-linear registration ('Syn') using both a
870870
Mutual Information and a local cross-correlation ('CC')-metric. Both metrics are weighted
871871
equally ('metric_weight' is .5 for both). The Mutual Information- metric uses 32 bins.

‎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/base/tests/test_core.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -288,28 +288,28 @@ class WithoutInput(WithInput):
288288
_version = "0.6"
289289

290290
has = WithInput()
291-
hasnt = WithoutInput()
291+
hasnot = WithoutInput()
292292
trying_anyway = WithoutInput(foo=3)
293293
assert has.inputs.foo == 3
294-
assert not nib.isdefined(hasnt.inputs.foo)
294+
assert not nib.isdefined(hasnot.inputs.foo)
295295
assert trying_anyway.inputs.foo == 3
296296

297297
has.run()
298-
hasnt.run()
298+
hasnot.run()
299299
with pytest.raises(Exception):
300300
trying_anyway.run()
301301

302302
# Still settable
303303
has.inputs.foo = 4
304-
hasnt.inputs.foo = 4
304+
hasnot.inputs.foo = 4
305305
trying_anyway.inputs.foo = 4
306306
assert has.inputs.foo == 4
307-
assert hasnt.inputs.foo == 4
307+
assert hasnot.inputs.foo == 4
308308
assert trying_anyway.inputs.foo == 4
309309

310310
has.run()
311311
with pytest.raises(Exception):
312-
hasnt.run()
312+
hasnot.run()
313313
with pytest.raises(Exception):
314314
trying_anyway.run()
315315

‎nipype/interfaces/cmtk/nx.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,8 @@ def _run_interface(self, runtime):
542542
"Saving extra measure file to %s in Pickle format",
543543
op.abspath(out_pickled_extra_measures),
544544
)
545-
with open(out_pickled_extra_measures, "w") as fo:
546-
pickle.dump(dict_measures, fo)
545+
with open(out_pickled_extra_measures, "w") as f:
546+
pickle.dump(dict_measures, f)
547547

548548
iflogger.info("Saving MATLAB measures as %s", matlab)
549549

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /