Skip to content

Commit f9ca616

Browse files
authored
Merge branch 'master' into issue-3553_add_mvecs_to_Dcm2niix
2 parents 4195b9e + 4a6a7d9 commit f9ca616

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+248
-101
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

.git-blame-ignore-revs

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,80 @@
1-
# Commits with messages like "STY: black" or "run black"
1+
# Wed Apr 5 14:01:05 2023 -0400 - effigies@gmail.com - STY: black [ignore-rev]
2+
a9ce9b78a402ebacf7726ad6454bb75b1447f52f
3+
# Wed Sep 14 14:12:07 2022 -0400 - mathiasg@stanford.edu - STY: Black
4+
f4a779223c6b0dffa47138d24ec9ef378c7164a9
5+
# Tue Apr 19 14:09:31 2022 -0400 - markiewicz@stanford.edu - STY: black [ignore-rev]
6+
b9716ebd46541f7fb1b96a94cc35b5e2ea6c3bba
7+
# Fri Apr 15 06:59:48 2022 -0700 - markiewicz@stanford.edu - STY: black [ignore-rev]
8+
d223fbccda6dee0ef39e00084296a3292f2ccf87
9+
# Fri Apr 8 21:34:43 2022 -0400 - markiewicz@stanford.edu - STY: black [ignore-rev]
10+
e3f56da124fd58041018c2e70d16a130ef189a66
11+
# Sun Apr 3 10:27:07 2022 -0400 - markiewicz@stanford.edu - STY: black [ignore-rev]
12+
988c382ebfc7df964874b6287b9d9e27e274a4a4
13+
# Sat Apr 2 21:32:56 2022 -0400 - markiewicz@stanford.edu - STY: black [ignore-rev]
14+
230fac6149d4dfbd5da669a983332a1fe318ef57
15+
# Sat Apr 2 12:49:15 2022 -0400 - markiewicz@stanford.edu - STY/TEST: Make specs and run black [ignore-rev]
16+
2ba8dacb8cc1f6f9c5b15b1cfb7b0395d45dcfb3
17+
# Sun Mar 20 21:19:39 2022 -0400 - markiewicz@stanford.edu - STY: black [ignore-rev]
18+
87cc1b54981113024ec3fd594881f72cf67513fb
19+
# Wed Dec 8 17:02:09 2021 -0500 - markiewicz@stanford.edu - STY: black [ignore-rev]
20+
5ac2f18ac116832d81a13f0c83e0a6aeda1457cf
21+
# Thu Dec 2 09:30:42 2021 -0500 - markiewicz@stanford.edu - STY: black
22+
ee50279ebf061a70ff502e7d2e51385b285cfda4
23+
# Tue Oct 26 11:18:02 2021 +0200 - code@oscaresteban.es - sty: run black
24+
5d9adbbb77b7047b9b47cd2fa079dee0094cfc91
25+
# Wed Oct 20 12:07:15 2021 +0200 - fabio.bernardoni@uniklinikum-dresden.de - run black on the preprocess.py file to improve formatting
26+
674e9b0eeca082efb5322b61fea57ee89a3e4a24
27+
# Wed Oct 13 16:08:23 2021 -0400 - markiewicz@stanford.edu - ENH: Add expected steps for FreeSurfer 7 recon-all (#3389)
28+
8f7c0bf2ec9c819844a2736a9ae2f6eef19a8e7f
29+
# Wed Oct 13 14:26:48 2021 -0400 - markiewicz@stanford.edu - STY: black
30+
d8dbc6f7b6a5385535e2fa53b7c6af7aa1370f46
31+
# Wed Sep 29 16:53:54 2021 +0200 - code@oscaresteban.es - sty: run black on affected files
32+
5f280da629bb7b5dce908633d2deea85b55dd67b
33+
# Thu Jun 24 17:43:22 2021 +0200 - code@oscaresteban.es - sty: run black
34+
135ce497a18adbe0811441c2b720910ec549aa6f
35+
# Thu Sep 23 08:56:28 2021 -0400 - markiewicz@stanford.edu - STY: black
36+
f69b3fb09560616822737764bb07272cd587e4a0
37+
# Fri Apr 30 17:19:55 2021 -0400 - markiewicz@stanford.edu - STY: black
38+
04718ac71436b6f283af7575dda0f6998b64f893
39+
# Fri Apr 30 16:50:00 2021 -0400 - markiewicz@stanford.edu - STY: black
240
12deb959cccc431fb8222cc5854f1c92a0080021
41+
# Thu Apr 1 12:26:08 2021 -0400 - markiewicz@stanford.edu - STY: black
342
f64bf338f630a9ee5cbe7a3ec98c68292897e720
43+
# Thu Dec 3 09:24:05 2020 +1100 - tom.g.close@gmail.com - run black over touched files
44+
c81259bc3b28baa1f18f95f6b056c228c6bfd115
45+
# Fri Aug 14 17:15:15 2020 -0400 - markiewicz@stanford.edu - STY: Black
446
83358d7f17aac07cb90d0330f11ea2322e2974d8
47+
# Sat Mar 14 12:44:20 2020 -0400 - markiewicz@stanford.edu - STY: black
548
faef7d0f93013a700c882f709e98fb3cd36ebb03
49+
# Sun Mar 8 15:05:28 2020 +0100 - 3453485+daniel-ge@users.noreply.github.com - FIX: get length of generator + STY: Black
50+
02991da67458b879d7c6360aa6457eb3c1bd5a07
51+
# Wed Mar 4 16:30:39 2020 -0500 - markiewicz@stanford.edu - STY: black
652
d50c1858564c0b3073fb23c54886a0454cb66afa
53+
# Thu Feb 27 15:08:42 2020 -0800 - code@oscaresteban.es - sty: black
754
417b8897a116fcded5000e21e2b6ccbe29452a52
55+
# Thu Jan 2 11:29:05 2020 -0800 - code@oscaresteban.es - sty: black
856
aaf677a87f64c485f3e305799e4a5dc73b69e5fb
57+
# Sun Dec 29 17:47:51 2019 -0800 - code@oscaresteban.es - sty: black
958
f763008442d88d8ce00ec266698268389415f8d6
59+
# Thu Jan 2 11:29:05 2020 -0800 - code@oscaresteban.es - sty: black
1060
b1eccafd4edc8503b02d715f5b5f6f783520fdf9
61+
# Sun Dec 29 17:47:51 2019 -0800 - code@oscaresteban.es - sty: black
1162
70db90349598cc7f26a4a513779529fba7d0a797
63+
# Thu Dec 19 09:22:22 2019 -0500 - markiewicz@stanford.edu - STY: Black
1264
6c1d91d71f6f0db0e985bd2adc34206442b0653d
65+
# Thu Dec 19 15:51:11 2019 -0500 - markiewicz@stanford.edu - STY: Black
1366
97bdbd5f48ab242de5288ba4715192a27619a803
67+
# Fri Nov 15 14:38:10 2019 -0500 - steve@steventilley.com - run black
1468
78fa360f5b785224349b8b85b07e510d2233bb63
69+
# Fri Nov 15 14:34:03 2019 -0500 - steve@steventilley.com - run black
1570
7f85f43a34de8bff8e634232c939b17cee8e8fc5
71+
# Thu Nov 14 11:14:51 2019 -0500 - markiewicz@stanford.edu - Merge pull request #3096 from effigies/sty/black
72+
1a869991adc024577536689d557fc748c764f15d
73+
# Thu Nov 14 09:15:20 2019 -0500 - markiewicz@stanford.edu - STY: Black setup.py
1674
9c50b5daa797def5672dd057155b0e2c658853e2
75+
# Thu Nov 14 09:14:38 2019 -0500 - markiewicz@stanford.edu - STY: Black for tools/
1776
47194993ae14aceeec436cfb3769def667196668
77+
# Wed Nov 13 23:41:15 2019 -0500 - markiewicz@stanford.edu - STY: Black
1878
75653feadc6667d5313d83e9c62a5d5819771a9c
79+
# Tue Nov 12 09:43:34 2019 -0500 - markiewicz@stanford.edu - STY: Black files pre-merge
1980
497b44d680eee0892fa59c6aaaae22a17d70a536

.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

.github/workflows/tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ jobs:
105105
depends: REQUIREMENTS
106106
deb-depends: true
107107
nipype-extras: doc,tests,profiler,duecredit,ssh
108-
- os: ubuntu-20.04
109-
python-version: 3.8
110-
check: test
111-
pip-flags: ''
112-
depends: NUMPY123
113-
deb-depends: true
114-
nipype-extras: doc,tests,nipy,profiler,duecredit,ssh
108+
# - os: ubuntu-20.04
109+
# python-version: 3.8
110+
# check: test
111+
# pip-flags: ''
112+
# depends: NUMPY123
113+
# deb-depends: true
114+
# nipype-extras: doc,tests,nipy,profiler,duecredit,ssh
115115
env:
116116
DEPENDS: ${{ matrix.depends }}
117117
CHECK_TYPE: ${{ matrix.check }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ __pycache__/
3030
.ruby-version
3131
.pytest_cache
3232
.vscode/
33-
venv/
33+
venv/

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v3.4.0
5+
rev: v4.4.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-yaml
1010
- id: check-added-large-files
1111
- repo: https://github.com/psf/black
12-
rev: 20.8b1
12+
rev: 23.3.0
1313
hooks:
1414
- id: black

.zenodo.json

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@
116116
{
117117
"name": "Yvernault, Benjamin"
118118
},
119-
{
120-
"name": "Hamalainen, Carlo",
121-
"orcid": "0000-0001-7655-3830"
122-
},
123119
{
124120
"affiliation": "Institute for Biomedical Engineering, ETH and University of Zurich",
125121
"name": "Christian, Horea",
126122
"orcid": "0000-0001-7037-2449"
127123
},
124+
{
125+
"name": "Hamalainen, Carlo",
126+
"orcid": "0000-0001-7655-3830"
127+
},
128128
{
129129
"affiliation": "Stanford University",
130130
"name": "Ćirić , Rastko",
@@ -193,6 +193,9 @@
193193
"name": "Dias, Maria de Fatima",
194194
"orcid": "0000-0001-8878-1750"
195195
},
196+
{
197+
"name": "Moloney, Brendan"
198+
},
196199
{
197200
"affiliation": "Otto-von-Guericke-University Magdeburg, Germany",
198201
"name": "Hanke, Michael",
@@ -202,9 +205,6 @@
202205
"affiliation": "Child Mind Institute",
203206
"name": "Giavasis, Steven"
204207
},
205-
{
206-
"name": "Moloney, Brendan"
207-
},
208208
{
209209
"affiliation": "SRI International",
210210
"name": "Nichols, B. Nolan",
@@ -363,6 +363,11 @@
363363
"name": "Schaefer, Alexander",
364364
"orcid": "0000-0001-6488-4739"
365365
},
366+
{
367+
"affiliation": "CEA",
368+
"name": "Papadopoulos Orfanos, Dimitri",
369+
"orcid": "0000-0002-1242-8990"
370+
},
366371
{
367372
"affiliation": "UniversityHospital Heidelberg, Germany",
368373
"name": "Kleesiek, Jens"
@@ -414,11 +419,6 @@
414419
{
415420
"name": "Haselgrove, Christian"
416421
},
417-
{
418-
"affiliation": "CEA",
419-
"name": "Papadopoulos Orfanos, Dimitri",
420-
"orcid": "0000-0002-1242-8990"
421-
},
422422
{
423423
"affiliation": "Department of Psychology, Stanford University; Parietal, INRIA",
424424
"name": "Durnez, Joke",
@@ -895,6 +895,11 @@
895895
"affiliation": "MIT, HMS",
896896
"name": "Ghosh, Satrajit",
897897
"orcid": "0000-0002-5312-6729"
898+
},
899+
{
900+
"affiliation": "University of Tübingen and MPI for Biological Cybernertics",
901+
"name": "Bannert, Michael M.",
902+
"orcid": "0000-0003-1010-7517"
898903
}
899904
],
900905
"keywords": [

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ PYTHON ?= python
99
zipdoc: html
1010
zip documentation.zip doc/_build/html
1111

12+
.git-blame-ignore-revs: .git/HEAD
13+
git log --grep "\[ignore-rev\]\|STY: black\|run black" -i --pretty=format:"# %ad - %ae - %s%n%H" > .git-blame-ignore-revs
14+
echo >> .git-blame-ignore-revs
15+
1216
sdist: zipdoc
1317
@echo "Building source distribution..."
1418
$(PYTHON) setup.py sdist

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: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
1.8.6 (April 05, 2023)
2+
======================
3+
4+
Bug-fix release in the 1.8.x series.
5+
6+
* FIX: Update dcmstack interface for Py3 / newer pydicom (https://github.com/nipy/nipype/pull/3541)
7+
* FIX: NiBabel 5, and NetworkX 3 and DIPY 1.6 compatibility (https://github.com/nipy/nipype/pull/3538)
8+
* FIX: Check for non-mandatory output in DWIBiasCorrect (https://github.com/nipy/nipype/pull/3523)
9+
* FIX: Removed leftover debug print statement in FEAT class (https://github.com/nipy/nipype/pull/3521)
10+
* DOC: Fix a few more typos (https://github.com/nipy/nipype/pull/3516)
11+
* DOC: Fix typos found by codespell (https://github.com/nipy/nipype/pull/3512)
12+
* CI: Drop nipy tests until a fixed nipy is released (https://github.com/nipy/nipype/pull/3559)
13+
* CI: Disable nipy tests generally, re-add with max numpy (https://github.com/nipy/nipype/pull/3532)
14+
* CI: GitHub Workflows security hardening (https://github.com/nipy/nipype/pull/3519)
15+
* CI: Allow tutorial test cancellation (https://github.com/nipy/nipype/pull/3514)
16+
17+
118
1.8.5 (September 21, 2022)
219
==========================
320

@@ -426,7 +443,7 @@ Python 1.2.3 will be the last version to support Python 3.4.
426443

427444
* FIX: ANTS LaplacianThickness cmdline opts fixed up (https://github.com/nipy/nipype/pull/2846)
428445
* 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)
446+
* ENH: Add interfaces wrapping DIPY workflows (https://github.com/nipy/nipype/pull/2830)
430447
* ENH: Update BIDSDataGrabber for pybids 0.7 (https://github.com/nipy/nipype/pull/2737)
431448
* ENH: Add FSL `eddy_quad` interface (https://github.com/nipy/nipype/pull/2825)
432449
* ENH: Support tckgen -select in MRtrix3 v3+ (https://github.com/nipy/nipype/pull/2823)

doc/interfaces.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Interfaces and Workflows
88
:Release: |version|
99
:Date: |today|
1010

11-
Previous versions: `1.8.5 <http://nipype.readthedocs.io/en/1.8.5/>`_ `1.8.4 <http://nipype.readthedocs.io/en/1.8.4/>`_
11+
Previous versions: `1.8.6 <http://nipype.readthedocs.io/en/1.8.6/>`_ `1.8.5 <http://nipype.readthedocs.io/en/1.8.5/>`_
1212

1313
Workflows
1414
---------

nipype/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"""
1414
import os
1515

16-
# XXX Deprecate this import
16+
# No longer used internally but could be used externally.
1717
from looseversion import LooseVersion
1818

1919
from .info import URL as __url__, STATUS as __status__, __version__

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/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# nipype version information
77
# Remove .dev0 for release
8-
__version__ = "1.8.6.dev0"
8+
__version__ = "1.8.7.dev0"
99

1010

1111
def get_nipype_gitversion():

nipype/interfaces/afni/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
from sys import platform
77
import shutil
88

9-
from ... import logging, LooseVersion
9+
from looseversion import LooseVersion
10+
11+
from ... import logging
1012
from ...utils.filemanip import split_filename, fname_presuffix
1113
from ..base import (
1214
CommandLine,

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 = (

0 commit comments

Comments
 (0)