Skip to content

Commit 4ae3ec1

Browse files
committed
Merge pull request #1303 from satra/fix/tests
Fix/tests
2 parents e915829 + bec353c commit 4ae3ec1

File tree

7 files changed

+25
-4
lines changed

7 files changed

+25
-4
lines changed

bin/nipype2boutiques

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!python
22
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
44
import sys

bin/nipype_cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!python
22
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
44
import sys

bin/nipype_display_crash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!python
22
"""Displays crash information from Nipype crash files. For certain crash files,
33
one can rerun a failed node in a temp directory.
44
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from ...testing import assert_equal
3+
from ..mesh import TVTKBaseInterface
4+
5+
6+
def test_TVTKBaseInterface_inputs():
7+
input_map = dict(ignore_exception=dict(nohash=True,
8+
usedefault=True,
9+
),
10+
)
11+
inputs = TVTKBaseInterface.input_spec()
12+
13+
for key, metadata in list(input_map.items()):
14+
for metakey, value in list(metadata.items()):
15+
yield assert_equal, getattr(inputs.traits()[key], metakey), value
16+

nipype/interfaces/ants/tests/test_auto_Registration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def test_Registration_inputs():
4444
),
4545
interpolation_parameters=dict(),
4646
invert_initial_moving_transform=dict(requires=['initial_moving_transform'],
47+
usedefault=True,
4748
xor=['initial_moving_transform_com'],
4849
),
4950
metric=dict(mandatory=True,

nipype/interfaces/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,10 @@ def _process(drain=0):
12701270
result['merged'] = [r[1] for r in temp]
12711271
if output == 'allatonce':
12721272
stdout, stderr = proc.communicate()
1273+
if stdout and isinstance(stdout, bytes):
1274+
stdout = stdout.decode()
1275+
if stderr and isinstance(stderr, bytes):
1276+
stderr = stderr.decode()
12731277
result['stdout'] = str(stdout).split('\n')
12741278
result['stderr'] = str(stderr).split('\n')
12751279
result['merged'] = ''

nipype/interfaces/fsl/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def _create_ev_files(
252252
element=count,
253253
ctype=ctype, val=val)
254254
ev_txt += "\n"
255-
255+
256256
for fconidx in ftest_idx:
257257
fval=0
258258
if con[0] in con_map.keys() and fconidx in con_map[con[0]]:

0 commit comments

Comments
 (0)