Skip to content

Commit 7d4808f

Browse files
authored
Merge pull request #3587 from effigies/fix/test-failures
FIX: Test failures
2 parents 4829683 + 5e2fd1c commit 7d4808f

File tree

9 files changed

+25
-116
lines changed

9 files changed

+25
-116
lines changed

.codespellrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ skip = .git,*.pdf,*.svg,external
55
# whos - smth used in matlab things
66
# SMAL - Stanford CNI MRS Library
77
# Suh - name
8-
# noo,crasher - field/var name used
8+
# noo,crasher,afile - field/var name used
99
# Reson - short journal name
1010
# ALS, FWE - neuroimaging specific abbrevs
1111
# 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
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,afile

.readthedocs.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
# Required
55
version: 2
66

7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.10"
12+
713
# Build documentation in the docs/ directory with Sphinx
814
sphinx:
915
configuration: doc/conf.py
@@ -12,9 +18,10 @@ sphinx:
1218
formats:
1319
- htmlzip
1420

15-
# Optionally set the version of Python and requirements required to build your docs
21+
# Optional but recommended, declare the Python requirements required
22+
# to build your documentation
23+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
1624
python:
17-
version: 3.7
1825
install:
1926
- requirements: doc/requirements.txt
2027
- method: pip

nipype/info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ def get_nipype_gitversion():
147147
"traits>=%s,<%s,!=5.0" % (TRAITS_MIN_VERSION, TRAITS_MAX_VERSION),
148148
"filelock>=3.0.0",
149149
"etelemetry>=0.2.0",
150-
"looseversion",
150+
"looseversion!=1.2",
151151
]
152152

153153
TESTS_REQUIRES = [
154154
"codecov",
155-
"coverage<5",
155+
"coverage",
156156
"pytest",
157157
"pytest-cov",
158158
"pytest-env",

nipype/interfaces/dcm2nii.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,11 @@ class Dcm2niixInputSpec(CommandLineInputSpec):
329329
desc="Gzip compress images - [y=pigz, i=internal, n=no, 3=no,3D]",
330330
)
331331
merge_imgs = traits.Enum(
332-
0, 1, 2,
332+
0,
333+
1,
334+
2,
335+
default=0,
336+
usedefault=True,
333337
argstr="-m %d",
334338
desc="merge 2D slices from same series regardless of echo, exposure, etc. - [0=no, 1=yes, 2=auto]",
335339
)
@@ -393,7 +397,7 @@ class Dcm2niix(CommandLine):
393397
>>> converter.inputs.compression = 5
394398
>>> converter.inputs.output_dir = 'ds005'
395399
>>> converter.cmdline
396-
'dcm2niix -b y -z y -5 -x n -t n -m n -o ds005 -s n -v n dicomdir'
400+
'dcm2niix -b y -z y -5 -x n -t n -m 0 -o ds005 -s n -v n dicomdir'
397401
>>> converter.run() # doctest: +SKIP
398402
399403
In the example below, we note that the current version of dcm2niix
@@ -406,7 +410,7 @@ class Dcm2niix(CommandLine):
406410
>>> converter.inputs.compression = 5
407411
>>> converter.inputs.output_dir = 'ds005'
408412
>>> converter.cmdline
409-
'dcm2niix -b y -z y -5 -x n -t n -m n -o ds005 -s n -v n .'
413+
'dcm2niix -b y -z y -5 -x n -t n -m 0 -o ds005 -s n -v n .'
410414
>>> converter.run() # doctest: +SKIP
411415
"""
412416

@@ -421,7 +425,6 @@ def version(self):
421425
def _format_arg(self, opt, spec, val):
422426
bools = [
423427
"bids_format",
424-
"merge_imgs",
425428
"single_file",
426429
"verbose",
427430
"crop",

nipype/interfaces/fsl/tests/test_auto_ProbTrackX.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ def test_ProbTrackX_inputs():
9090
argstr="--randfib=%d",
9191
),
9292
random_seed=dict(
93-
argstr="--rseed",
93+
argstr="--rseed=%d",
9494
),
9595
s2tastext=dict(
9696
argstr="--s2tastext",
9797
),
9898
sample_random_points=dict(
99-
argstr="--sampvox",
99+
argstr="--sampvox=%.3f",
100100
),
101101
samples_base_name=dict(
102102
argstr="--samples=%s",

nipype/interfaces/fsl/tests/test_auto_ProbTrackX2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ def test_ProbTrackX2_inputs():
116116
argstr="--randfib=%d",
117117
),
118118
random_seed=dict(
119-
argstr="--rseed",
119+
argstr="--rseed=%d",
120120
),
121121
s2tastext=dict(
122122
argstr="--s2tastext",
123123
),
124124
sample_random_points=dict(
125-
argstr="--sampvox",
125+
argstr="--sampvox=%.3f",
126126
),
127127
samples_base_name=dict(
128128
argstr="--samples=%s",

nipype/interfaces/tests/test_auto_Dcm2niix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_Dcm2niix_inputs():
4141
argstr="-i",
4242
),
4343
merge_imgs=dict(
44-
argstr="-m",
44+
argstr="-m %d",
4545
usedefault=True,
4646
),
4747
out_filename=dict(

nipype/testing/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@
1616
template = funcfile
1717
transfm = funcfile
1818

19-
from . import decorators
2019
from .utils import package_check, TempFATFS
2120

22-
skipif = decorators.dec.skipif
23-
2421

2522
def example_data(infile="functional.nii"):
2623
"""returns path to empty example data files for doc tests

nipype/testing/decorators.py

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)